JSFileSystemHandle extension
Represents a file or directory entry. Multiple handles can represent the same entry. For the most part you do not work with FileSystemHandle directly but rather its child interfaces FileSystemFileHandle and FileSystemDirectoryHandle.
Example and more on MDN Web Docs
Properties
- kind → FileSystemKind
-
Available on FileSystemHandle, provided by the JSFileSystemHandle extension
Returns the type of entry.file
if the associated entry is a file ordirectory
.no setter - name → String
-
Available on FileSystemHandle, provided by the JSFileSystemHandle extension
Returns the name of the associated entry (extension included).no setter
Methods
-
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. -
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. Whenrecursive
is set to true and the entry is a directory, its contents will be removed recursively. -
requestPermission(
{required PermissionMode mode}) → Future< PermissionState> -
Available on FileSystemHandle, provided by the JSFileSystemHandle extension
Requestsread
orreadwrite
permissions for the file handle.