WatchedRoot
Import :
const WatchedRoot = brackets.getModule("filesystem/WatchedRoot")
WatchedRoot
Kind: global class
- WatchedRoot
- new WatchedRoot(entry, filter, filterGitIgnore)
- instance
- .entry :
File
|Directory
- .filter :
function
- .filterGitIgnore :
string
|Array.<string>
- .status :
number
- .entry :
- static
new WatchedRoot(entry, filter, filterGitIgnore)
Represents file or directory structure watched by the FileSystem. If the entry is a directory, all children (that pass the supplied filter function) are also watched. A WatchedRoot object begins and ends its life in the INACTIVE state. While in the process of starting up watchers, the WatchedRoot is in the STARTING state. When watchers are ready, the WatchedRoot enters the ACTIVE state.
See the FileSystem class for more details.
Param | Type |
---|---|
entry | File | Directory |
filter | function |
filterGitIgnore | string | Array.<string> |
watchedRoot.entry : File
| Directory
Kind: instance property of WatchedRoot
watchedRoot.filter : function
Kind: instance property of WatchedRoot
watchedRoot.filterGitIgnore : string
| Array.<string>
Kind: instance property of WatchedRoot
watchedRoot.status : number
Kind: instance property of WatchedRoot
WatchedRoot.INACTIVE : number
WatchedRoot inactive
Kind: static constant of WatchedRoot
WatchedRoot.STARTING : number
WatchedRoot starting
Kind: static constant of WatchedRoot
WatchedRoot.ACTIVE : number
WatchedRoot active
Kind: static constant of WatchedRoot