Creates a writable stream for the given file path. This enables streaming writes for large files without buffering the entire content in memory.
This method is optional. If not implemented, callers should fall back to buffering and using writeFile.
Returns information about the given file or directory.
The method is similar to the stat method except it doesn't follow symlinks.
When given a path that is a symlink it returns the stat of the symlink and not its target.
Asynchronously reads the entire contents of a file.
Resolves with the contents of the file as an Uint8Array or a string if the encoding is set to utf8.
Reads a slice of a file from the given byte range [start, end). This enables reading portions of large files without loading them entirely into memory.
This method is optional. If not implemented, callers should fall back to reading the entire file with readFile.
Asynchronously writes data to a file, replacing the file if it already exists.
Data can be a string or an Uint8Array.
The encoding option is ignored if data is an Uint8Array.
Optional options: EncodingOptionsStatic isGenerated using TypeDoc
Represents FsClient implementation which uses File System Access API under the hood for persistent storage. Meant to be used in a browser environment.
Limitations
statorlstatmethods: size and mtimeMs are only supported and only for filesSee
Example