On this page

Source Code: lib/util/fs.js#L110

Returns location of targetPath relative to rootPath.

watcher.close(): void
Source Code: lib/util/fs.js#L111

closes the watcher and all underlying file watchers

watcher.getAggregatedChanges(): Set<string> | null
Source Code: lib/util/fs.js#L113
Returns:Set<string> | null

get current aggregated changes that have not yet send to callback

watcher.getAggregatedRemovals(): Set<string> | null
Source Code: lib/util/fs.js#L114
Returns:Set<string> | null

get current aggregated removals that have not yet send to callback

watcher.getContextTimeInfoEntries(): Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>
Source Code: lib/util/fs.js#L116

get info about directories

watcher.getFileTimeInfoEntries(): Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>
Source Code: lib/util/fs.js#L115

get info about files

watcher.getInfo(): WatcherInfo
Source Code: lib/util/fs.js#L117
Returns:WatcherInfo

get info about timestamps and changes

watcher.pause(): void
Source Code: lib/util/fs.js#L112

closes the watcher, but keeps underlying file watchers alive until the next watch call