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.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
kind FileSystemHandleKind
The kind read-only property of the FileSystemHandle interface returns the type of entry. This is 'file' if the associated entry is a file or 'directory'. It is used to distinguish files from directories when iterating over the contents of a directory.
no setterinherited
name String
The name read-only property of the FileSystemHandle interface returns the name of the entry represented by handle.
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 the FileSystemDirectoryHandle interface returns a FileSystemDirectoryHandle 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 a FileSystemFileHandle 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 an Array 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