FileSystemFileHandle extension type
The FileSystemFileHandle
interface of the File System 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 FileSystemHandle.queryPermission
method of the
FileSystemHandle interface can be used to verify permission state before
accessing a file.
- on
- Implemented types
- Available extensions
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
-
createSyncAccessHandle(
) → JSPromise< FileSystemSyncAccessHandle> -
The
createSyncAccessHandle()
method of the FileSystemFileHandle interface returns aPromise
which resolves to a FileSystemSyncAccessHandle object that can be used to synchronously read from and write to a file. The synchronous nature of this method brings performance advantages, but it is only usable inside dedicated Web Workers for files within the origin private file system. -
createWritable(
[FileSystemCreateWritableOptions options]) → JSPromise< FileSystemWritableFileStream> -
The
createWritable()
method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file. The method returns aPromise
which resolves to this created stream. -
getFile(
) → JSPromise< File> -
The
getFile()
method of the FileSystemFileHandle interface returns aPromise
which resolves to a File object representing the state on disk of the entry represented by the handle. -
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited