Protected
Optional
Internal
_disableWhether the sync cache should be disabled. Only affects async things.
Readonly
optionsReadonly
portCreate the file at path
with the given options. Then, open it with flag
.
Abstract
createCreate the file at path
with the given options. Then, open it with flag
.
Abstract
linkGet metadata about the current file system
Abstract
mkdirOpens the file at path
with flag
. The file must exist.
The path to open.
The flag to use when opening the file.
Abstract
openOpens the file at path
with flag
. The file must exist.
The path to open.
The flag to use when opening the file.
Reads into a buffer
The buffer to read into. You must set the byteOffset
and byteLength
appropriately!
The offset into the file to start reading from
Abstract
readdirAbstract
readReads into a buffer
The buffer to read into. You must set the byteOffset
and byteLength
appropriately!
The offset into the file to start reading from
The position in the file to stop reading
Abstract
renameAbstract
rmdirProtected
rpcAbstract
statAbstract
syncAbstract
unlinkWrites a buffer to a file
The buffer to write. You must set the byteOffset
and byteLength
appropriately!
The offset in the file to start writing
Abstract
writeWrites a buffer to a file
The buffer to write. You must set the byteOffset
and byteLength
appropriately!
The offset in the file to start writing
PortFS lets you access an FS instance that is running in a port, or the other way around.
Note that direct synchronous operations are not permitted on the PortFS, regardless of the configuration option of the remote FS.