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.
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