Internal
Protected
_initializedProtected
Optional
Internal
_mountThe last place this file system was mounted
Readonly
attributesReadonly
idA unique ID for this kind of file system. Currently unused internally, but could be used for partition tables or something
Optional
labelReadonly
nameThe name for this file system. For example, tmpfs for an in memory one
Protected
Readonly
storeAdd a inode/path pair
Move paths in the tables
Gets the first path associated with an inode
Remove a inode/path pair
Protected
allocAllocates a new ID and adds the ID/path
Checks if the root directory exists. Creates it if it doesn't.
Checks if the root directory exists. Creates it if it doesn't.
Protected
commitCommits a new file (well, a FILE or a DIRECTORY) to the file system with mode
.
Note: This will commit the transaction.
The path to the new file.
The options to create the new file with.
The data to store at the file's data node.
Protected
commitCommits a new file (well, a FILE or a DIRECTORY) to the file system with mode
.
Note: This will commit the transaction.
The path to the new file.
The options to create the new file with.
The data to store at the file's data node.
The Inode for the new file.
Create the file at path
with the given options. Then, open it with flag
.
Create the file at path
with the given options. Then, open it with flag
.
Test whether or not path
exists.
Test whether or not path
exists.
Protected
findFinds the Inode of path
.
The path to look up.
Protected
findFinds the Inode of path
.
The path to look up.
The Inode of the path p.
Load an index into the StoreFS. You must manually add non-directory files
Load an index into the StoreFS. You must manually add non-directory files
Opens the file at path
with flag
. The file must exist.
The path to open.
The flag to use when opening the file.
Opens 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
The position in the file to stop reading
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
The position in the file to stop reading
Protected
removeProtected
removeUpdated the inode and data node at path
Optional
data: Uint8Array<ArrayBufferLike>Optional
metadata: Readonly<InodeLike>Experimental
Writes a buffer to a file
The offset in the file to start writing
Writes a buffer to a file
The offset in the file to start writing
A file system which uses a
Store
Todo
Check modes?