FileSystemDirectoryHandle class

Inheritance
Available extensions
Annotations
  • @JS()
  • @staticInterop

Properties

hashCode int
The hash code for this object.
no setterinherited
kind FileSystemKind

Available on FileSystemHandle, provided by the JSFileSystemHandle extension

Returns the type of entry. file if the associated entry is a file or directory.
no setter
name String

Available on FileSystemHandle, provided by the JSFileSystemHandle extension

Returns the name of the associated entry (extension included).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Stream<FileSystemHandle>

Available on FileSystemDirectoryHandle, provided by the JSFileSystemDirectoryHandle extension

Asynchronous iterator of FileSystemHandle as found in this directory when called.
no setter

Methods

getDirectoryHandle(String name, {bool create = false}) Future<FileSystemDirectoryHandle>

Available on FileSystemDirectoryHandle, provided by the JSFileSystemDirectoryHandle extension

Returns a Future fulfilled with a FileSystemDirectoryHandle for a subdirectory with the specified name, within this directory.
getFileHandle(String name, {bool create = false}) Future<FileSystemFileHandle>

Available on FileSystemDirectoryHandle, provided by the JSFileSystemDirectoryHandle extension

Returns a Future fulfilled with a FileSystemFileHandle for a file with the specified name, within this directory.
isSameEntry(FileSystemHandle other) Future<bool>

Available on FileSystemHandle, provided by the JSFileSystemHandle extension

Compares two handles to see if the associated entries (either a file or directory) match.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryPermission({required PermissionMode mode}) Future<PermissionState>

Available on FileSystemHandle, provided by the JSFileSystemHandle extension

Queries the current permission state of the current handle.
remove({bool recursive = false}) Future<void>

Available on FileSystemHandle, provided by the JSFileSystemHandle extension

Requests removal of the entry represented by the handle from the underlying file system. When recursive is set to true and the entry is a directory, its contents will be removed recursively.
removeEntry(String name, {bool recursive = false}) Future<void>

Available on FileSystemDirectoryHandle, provided by the JSFileSystemDirectoryHandle extension

Attempts to asynchronously remove an entry if the directory handle contains a file or directory called the name specified.
requestPermission({required PermissionMode mode}) Future<PermissionState>

Available on FileSystemHandle, provided by the JSFileSystemHandle extension

Requests read or readwrite permissions for the file handle.
resolve(FileSystemHandle possibleDescendant) Future<List<String>?>

Available on FileSystemDirectoryHandle, provided by the JSFileSystemDirectoryHandle extension

Returns a List of directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item or null if possibleDescendant is not a descendant of this FileSystemDirectoryHandle.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited