Returns location of targetPath relative to rootPath.
watcher.close(): void
closes the watcher and all underlying file watchers
watcher.getAggregatedChanges(): Set<string> | null
get current aggregated changes that have not yet send to callback
watcher.getAggregatedRemovals(): Set<string> | null
get current aggregated removals that have not yet send to callback
watcher.getContextTimeInfoEntries(): Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>
Returns:
Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>get info about directories
watcher.getFileTimeInfoEntries(): Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>
Returns:
Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>get info about files
watcher.getInfo(): WatcherInfo
Returns:
WatcherInfoget info about timestamps and changes
watcher.pause(): void
closes the watcher, but keeps underlying file watchers alive until the next watch call