FileSystemFileHandle class

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the File System Access API represents a handle to a file system entry. The interface is accessed through the window.showOpenFilePicker() method. Note that read and write operations depend on file-access permissions that do not persist after a page refresh if no other tabs for that origin remain open. The queryPermission method of the FileSystemHandle interface can be used to verify permission state before accessing a file.

FileSystemHandle

FileSystemFileHandle

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

FileSystemFileHandle()
factory

Properties

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

Available on FileSystemHandle, provided by the PropsFileSystemHandle extension

no setter
name String

Available on FileSystemHandle, provided by the PropsFileSystemHandle extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createWritable([FileSystemCreateWritableOptions? options]) Future<FileSystemWritableFileStream>

Available on FileSystemFileHandle, provided by the PropsFileSystemFileHandle extension

getFile() Future<File>

Available on FileSystemFileHandle, provided by the PropsFileSystemFileHandle extension

isSameEntry(FileSystemHandle other) Future<bool>

Available on FileSystemHandle, provided by the PropsFileSystemHandle extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryPermission([FileSystemHandlePermissionDescriptor? descriptor]) Future<PermissionState>

Available on FileSystemHandle, provided by the PropsFileSystemHandle extension

requestPermission([FileSystemHandlePermissionDescriptor? descriptor]) Future<PermissionState>

Available on FileSystemHandle, provided by the PropsFileSystemHandle extension

toString() String
A string representation of this object.
inherited

Operators

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