FileSystemDirectoryHandle

The FileSystemDirectoryHandle interface of the File System API provides a handle to a file system directory. Available only in secure contexts.

MDN Reference

Properties

Link copied to clipboard

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
Link copied to clipboard
Link copied to clipboard

The getDirectoryHandle() method of the FileSystemDirectoryHandle interface returns a FileSystemDirectoryHandle for a subdirectory with the specified name within the directory handle on which the method is called.

Link copied to clipboard

The getDirectoryHandle() method of the FileSystemDirectoryHandle interface returns a FileSystemDirectoryHandle for a subdirectory with the specified name within the directory handle on which the method is called.

Link copied to clipboard

The getFileHandle() method of the FileSystemDirectoryHandle interface returns a FileSystemFileHandle for a file with the specified name, within the directory the method is called.

Link copied to clipboard

The getFileHandle() method of the FileSystemDirectoryHandle interface returns a FileSystemFileHandle for a file with the specified name, within the directory the method is called.

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.

Link copied to clipboard
abstract fun keys(): AsyncIterator<JsString>
Link copied to clipboard
inline suspend fun FileSystemDirectoryHandle.removeEntry(name: String)

The removeEntry() method of the FileSystemDirectoryHandle interface attempts to remove an entry if the directory handle contains a file or directory called the name specified.

Link copied to clipboard
fun removeEntryAsync(name: String, options: FileSystemRemoveOptions = definedExternally): Promise<Void?>

The removeEntry() method of the FileSystemDirectoryHandle interface attempts to remove an entry if the directory handle contains a file or directory called the name specified.

Link copied to clipboard
inline suspend fun FileSystemDirectoryHandle.resolve(possibleDescendant: FileSystemHandle): ReadonlyArray<JsString>?

The resolve() method of the FileSystemDirectoryHandle interface returns an Array of directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item.

Link copied to clipboard

The resolve() method of the FileSystemDirectoryHandle interface returns an Array of directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item.

Link copied to clipboard