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

Function createWildcardDirectoryWatcher

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

Source from the content-addressed store, hash-verified

115522 onExistingValue: updateWildcardDirectoryWatcher
115523 });
115524 function createWildcardDirectoryWatcher(directory, flags) {
115525 // Create new watch and recursive info
115526 return {
115527 watcher: watchDirectory(directory, flags),
115528 flags: flags
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) {

Callers 1

Calls 1

watchDirectoryFunction · 0.85

Tested by

no test coverage detected