Private
_cacheProtected
_readyProtected
storeStatic
Readonly
NamePrivate
_findINodeHelper function for findINode.
The parent directory of the file we are attempting to find.
The filename of the inode we are attempting to find, minus the parent.
Asynchronous access.
Synchronous access.
Private
addAdds a new node under a random ID. Retries 5 times before giving up in the exceedingly unlikely chance that we try to reuse a random GUID.
Asynchronous chmod
.
Synchronous chmod
.
Asynchronous chown
.
Synchronous chown
.
Private
commitCommits a new file (well, a FILE or a DIRECTORY) to the file system with the given mode. Note: This will commit the transaction.
The path to the new file.
The type of the new file.
The mode to create the new file with.
The UID/GID to create the file with
The data to store at the file's data node.
Test whether or not the given path exists by checking with the file system. Then call the callback argument with either true or false.
Test whether or not the given path exists by checking with the file system.
Private
findINodeFinds the Inode of the given path.
The path to look up.
memoize/cache
Private
getGiven the Inode of a directory, retrieves the corresponding directory listing.
Private
getINodeGiven the ID of a node, retrieves the corresponding Inode.
The transaction to use.
The corresponding path to the file (used for error messages).
The ID to look up.
Initializes the file system. Typically called by subclasses' async constructors.
Asynchronous link
.
Synchronous link
.
Private
makeAsynchronous mkdir
.
Mode to make the directory using. Can be ignored if the filesystem doesn't support permissions.
Synchronous mkdir
.
Mode to make the directory using. Can be ignored if the filesystem doesn't support permissions.
Asynchronous readdir
. Reads the contents of a directory.
The callback gets two arguments (err, files)
where files
is an array of
the names of the files in the directory excluding '.'
and '..'
.
Synchronous readdir
. Reads the contents of a directory.
Asynchronous readlink.
Synchronous readlink.
Asynchronous realpath
. The callback gets two arguments
(err, resolvedPath)
.
Note that the Node API will resolve path
to an absolute path.
Synchronous realpath
.
Note that the Node API will resolve path
to an absolute path.
Private
removeRemove all traces of the given path from the file system.
The path to remove from the file system.
Does the path belong to a directory, or a file?
Update mtime.
Make rename compatible with the cache.
Synchronous rename.
Asynchronous rmdir
.
Synchronous rmdir
.
Asynchronous symlink
.
can be either 'dir'
or 'file'
Synchronous symlink
.
can be either 'dir'
or 'file'
Asynchronous truncate
.
Synchronous truncate
.
Asynchronous unlink
.
Synchronous unlink
.
Change file timestamps of the file referenced by the supplied path.
Change file timestamps of the file referenced by the supplied path.
Static
isGenerated using TypeDoc
An "Asynchronous key-value file system". Stores data to/retrieves data from an underlying asynchronous key-value store.