Package-level declarations
Types
The File and Directory Entries API interface FileSystem
is used to represent a file system.
The FileSystemDirectoryEntry
interface of the File and Directory Entries API represents a directory in a file system.
The FileSystemDirectoryHandle
interface of the File System API provides a handle to a file system directory. Available only in secure contexts.
The FileSystemDirectoryReader
interface of the File and Directory Entries API lets you access the FileSystemFileEntry-based objects (generally FileSystemFileEntry or FileSystemDirectoryEntry) representing each entry in a directory.
The FileSystemEntry
interface of the File and Directory Entries API represents a single entry in a file system.
The FileSystemFileEntry
interface of the File and Directory Entries API represents a file in a file system.
The FileSystemFileHandle
interface of the File System API represents a handle to a file system entry. Available only in secure contexts.
The FileSystemHandle
interface of the File System API is an object which represents a file or directory entry. Available only in secure contexts.
The FileSystemSyncAccessHandle
interface of the File System API represents a synchronous handle to a file system entry. Available only in secure contexts.
The FileSystemWritableFileStream
interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk. Available only in secure contexts.
Properties
Functions
The createSyncAccessHandle()
method of the that can be used to synchronously read from and write to a file.
The createWritable()
method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.
The FileSystemFileEntry interface's method file()
returns a the directory entry.
The FileSystemDirectoryEntry interface's method getDirectory()
returns a somewhere within the directory subtree rooted at the directory on which it's called.
The getDirectoryHandle()
method of the within the directory handle on which the method is called.
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.
The FileSystemDirectoryEntry interface's method getFile()
returns a within the directory subtree rooted at the directory on which it's called.
The getFileHandle()
method of the directory the method is called.
The FileSystemEntry interface's method getParent()
obtains a ``js-nolint getParent(successCallback, errorCallback) getParent(successCallback) ``
- successCallback
- : A function which is called when the parent directory entry has been retrieved.
The isSameEntry()
method of the ``js-nolint isSameEntry(fileSystemHandle) ``
- FileSystemHandle - : The FileSystemHandle
to match against the handle on which the method is invoked.
The removeEntry()
method of the directory handle contains a file or directory called the name specified.
The resolve()
method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item.
The seek()
method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method.
The truncate()
method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes.
The write()
method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset.