MCPcopy Create free account
hub / github.com/nodejs/node / updateWildcardDirectoryWatcher

Function updateWildcardDirectoryWatcher

test/fixtures/snapshot/typescript.js:115531–115538  ·  view source on GitHub ↗
(existingWatcher, flags, directory)

Source from the content-addressed store, hash-verified

115529 };
115530 }
115531 function updateWildcardDirectoryWatcher(existingWatcher, flags, directory) {
115532 // Watcher needs to be updated if the recursive flags dont match
115533 if (existingWatcher.flags === flags) {
115534 return;
115535 }
115536 existingWatcher.watcher.close();
115537 existingWatchedForWildcards.set(directory, createWildcardDirectoryWatcher(directory, flags));
115538 }
115539 }
115540 ts.updateWatchingWildcardDirectories = updateWatchingWildcardDirectories;
115541 /* @internal */

Callers

nothing calls this directly

Calls 3

closeMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected