const FileIndex = brackets.getModule("filesystem/FileIndex")Kind: global class
Clear the file index cache.
Kind: instance method of FileIndex
Will prevent the file from being removed from index. However, it is reset when index is cleared.
Kind: instance method of FileIndex
Visits every entry in the entire index; no stopping condition.
Kind: instance method of FileIndex
| Param | Type | Description |
|---|---|---|
| Called | function |
with an entry and its fullPath |
Add an entry.
Kind: instance method of FileIndex
| Param | Type | Description |
|---|---|---|
| entry | FileSystemEntry |
The entry to add. |
Remove an entry.
Kind: instance method of FileIndex
| Param | Type | Description |
|---|---|---|
| entry | FileSystemEntry |
The entry to remove. |
Notify the index that an entry has been renamed. This updates all affected entries in the index.
Kind: instance method of FileIndex
| Param | Type |
|---|---|
| oldPath | string |
| newPath | string |
| isDirectory | boolean |
Returns the cached entry for the specified path, or undefined if the path has not been cached.
Kind: instance method of FileIndex
Returns: File | Directory - The entry for the path, or undefined if it hasn't
been cached yet.
| Param | Type | Description |
|---|---|---|
| path | string |
The path of the entry to return. |
FileIndex is an internal module used by FileSystem to maintain an index of all files and directories.
This module is only used by FileSystem, and should not be called directly.
Kind: global variable