FileSystemFileHandle

The FileSystemFileHandle interface of the File System API represents a handle to a file system entry. Available only in secure contexts.

MDN Reference

Properties

Link copied to clipboard
open override val kind: FileSystemHandleKind.file

The kind read-only property of the FileSystemHandle interface returns the type of entry.

Link copied to clipboard

The name read-only property of the FileSystemHandle interface returns the name of the entry represented by handle.

Functions

Link copied to clipboard

The createSyncAccessHandle() method of the FileSystemFileHandle interface returns a Promise which resolves to a FileSystemSyncAccessHandle object that can be used to synchronously read from and write to a file.

Link copied to clipboard

The createSyncAccessHandle() method of the FileSystemFileHandle interface returns a Promise which resolves to a FileSystemSyncAccessHandle object that can be used to synchronously read from and write to a file.

Link copied to clipboard

The createWritable() method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.

Link copied to clipboard

The createWritable() method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.

Link copied to clipboard
inline suspend fun FileSystemFileHandle.getFile(): File

The getFile() method of the FileSystemFileHandle interface returns a Promise which resolves to a File object representing the state on disk of the entry represented by the handle.

Link copied to clipboard

The getFile() method of the FileSystemFileHandle interface returns a Promise which resolves to a File object representing the state on disk of the entry represented by the handle.

Link copied to clipboard

The isSameEntry() method of the FileSystemHandle interface compares two FileSystemHandle to see if the associated entries (either a file or directory) match.

Link copied to clipboard

The isSameEntry() method of the FileSystemHandle interface compares two FileSystemHandle to see if the associated entries (either a file or directory) match.