Constructs a new FileIndex.
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).
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).
Runs the given function over all files in the index.
Returns the inode of the given item.
Returns null if the item does not exist.
Retrieves the directory listing of the given path.
An array of files in the given path, or 'null' if it 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 method for constructing indices from a JSON listing.
Directory listing generated by tools/XHRIndexer.coffee
A new FileIndex object.
Generated 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.