resolveDirectory static method

Future<FileSystemDirectoryHandle> resolveDirectory(
  1. String path, {
  2. bool create = true,
})

Resolves a FileSystemDirectoryHandle from a path resolved against the OPFS root.

The directory is created recursively if create is enabled (the default).

Implementation

static Future<FileSystemDirectoryHandle> resolveDirectory(
  String path, {
  bool create = true,
}) async {
  final (_, handle) = await _resolveDir(path, create: create);
  return handle;
}