Internal
Constructs a new PortFS instance that connects with the FS running on options.port
.
Protected
Optional
Internal
_mountThe last place this file system was mounted
Protected
Internal
_uuidThe UUID of the file system.
Readonly
attributesOptional
labelReadonly
nameThe name for this file system. For example, tmpfs for an in memory one
Readonly
optionsReadonly
portReadonly
typeA unique ID for this kind of file system. Currently unused internally, but could be used for partition tables or something
Create the file at path
with the given options.
Abstract
createCreate the file at path
with the given options.
Test whether or not path
exists.
Test whether or not path
exists.
Abstract
linkAbstract
mkdirReads 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
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
touchAbstract
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.