Private
_indexPrivate
_split_Adds the given absolute path to the index if it is not already in the index. Creates any needed parent directories.
The path to add to the index.
The inode for the path to add.
'True' if it was added or already exists, 'false' if there was an issue adding it (e.g. item in path is a file, item exists but is different).
If adding fails and implicitly creates directories, we do not clean up the new empty directories.
Adds the given absolute path to the index if it is not already in the index. The path is added without special treatment (no joining of adjacent separators, etc). Creates any needed parent directories.
The path to add to the index.
The inode for the path to add.
'True' if it was added or already exists, 'false' if there was an issue adding it (e.g. item in path is a file, item exists but is different).
If adding fails and implicitly creates directories, we do not clean up the new empty directories.
Returns the inode of the given item.
Returns null if the item does not exist.
Removes the given path. Can be a file or a directory.
The removed item, or null if it did not exist.
Static
fromGenerated using TypeDoc
A simple class for storing a filesystem index. Assumes that all paths passed to it are absolute paths.
Can be used as a partial or a full index, although care must be taken if used for the former purpose, especially when directories are concerned.