FileSystemDirectoryHandle extension type
The FileSystemDirectoryHandle
interface of the File System API
provides a handle to a file system directory.
The interface can be accessed via the window.showDirectoryPicker
,
StorageManager.getDirectory, DataTransferItem.getAsFileSystemHandle
, and
FileSystemDirectoryHandle.getDirectoryHandle methods.
- on
- Implemented types
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → FileSystemHandleKind
-
no setterinherited
- name → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDirectoryHandle(
String name, [FileSystemGetDirectoryOptions options]) → JSPromise< FileSystemDirectoryHandle> -
The
getDirectoryHandle()
method of theFileSystemDirectoryHandle
interface returns aFileSystemDirectoryHandle
for a subdirectory with the specified name within the directory handle on which the method is called. -
getFileHandle(
String name, [FileSystemGetFileOptions options]) → JSPromise< FileSystemFileHandle> -
The
getFileHandle()
method of the FileSystemDirectoryHandle interface returns aFileSystemFileHandle
for a file with the specified name, within the directory the method is called. -
isSameEntry(
FileSystemHandle other) → JSPromise< JSBoolean> -
The
isSameEntry()
method of the FileSystemHandle interface compares two FileSystemHandle to see if the associated entries (either a file or directory) match.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEntry(
String name, [FileSystemRemoveOptions options]) → JSPromise< JSAny?> -
The
removeEntry()
method of the FileSystemDirectoryHandle interface attempts to remove an entry if the directory handle contains a file or directory called the name specified. -
resolve(
FileSystemHandle possibleDescendant) → JSPromise< JSArray< JSString> ?> -
The
resolve()
method of the FileSystemDirectoryHandle interface returns anArray
of directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited