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 'file' if the associated entry is a file or 'directory'.

Link copied to clipboard

The name read-only property of the handle.

Functions

Link copied to clipboard

The createSyncAccessHandle() method of the 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
suspend fun getFile(): File

The getFile() method of the If the file on disk changes or is removed after this method is called, the returned ``js-nolint getFile() `` None.

Link copied to clipboard
Link copied to clipboard
suspend fun isSameEntry(other: FileSystemHandle): Boolean

The isSameEntry() method of the ``js-nolint isSameEntry(fileSystemHandle) `` - FileSystemHandle - : The FileSystemHandle to match against the handle on which the method is invoked.

Link copied to clipboard