Class FilesystemExperimental
Index
Constructors
Accessors
Methods
Constructors
constructor
- new Filesystem(): Filesystem
ExperimentalReturns Filesystem
Accessors
config
- get config(): Configuration<ConfigMounts>
ExperimentalReturns Configuration<ConfigMounts>
The filesystem options.
constants
- get constants(): __module
ExperimentalReturns __module
Constants related to the filesystem.
fs
- get fs(): __module
ExperimentalReturns __module
The asynchronous ZenFS filesystem instance.
fsSync
- get fsSync(): __module
ExperimentalReturns __module
The synchronous ZenFS filesystem instance.
Methods
configure
descriptions
exists
extractTarball
- extractTarball(
tarballPath: string,
extractPath: string,
fileMode?: number,
directoryMode?: number,
): Promise<void> ExperimentalExtracts a tarball to the given path.
Parameters
- tarballPath: string
The path to the tarball.
- extractPath: string
The path to extract the tarball to.
- fileMode: number = 0o644
The mode to set for files. Defaults to 0o644.
- directoryMode: number = 0o755
The mode to set for directories. Defaults to 0o755.
Returns Promise<void>
A promise that resolves when the tarball is extracted.
- tarballPath: string
Author
Jay Mathis code@mathis.network (https://github.com/mathiscode)
The Filesystem class provides a virtual filesystem for the ecmaOS kernel.
See
ZenFS