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

Function nonSyncUpdateChildWatches

test/fixtures/snapshot/typescript.js:6612–6623  ·  view source on GitHub ↗
(dirName, dirPath, fileName, options)

Source from the content-addressed store, hash-verified

6610 });
6611 }
6612 function nonSyncUpdateChildWatches(dirName, dirPath, fileName, options) {
6613 // Iterate through existing children and update the watches if needed
6614 var parentWatcher = cache.get(dirPath);
6615 if (parentWatcher && directoryExists(dirName)) {
6616 // Schedule the update and postpone invoke for callbacks
6617 scheduleUpdateChildWatches(dirName, dirPath, fileName, options);
6618 return;
6619 }
6620 // Call the actual callbacks and remove child watches
6621 invokeCallbacks(dirPath, fileName);
6622 removeChildWatches(parentWatcher);
6623 }
6624 function scheduleUpdateChildWatches(dirName, dirPath, fileName, options) {
6625 var existing = cacheToUpdateChildWatches.get(dirPath);
6626 if (existing) {

Callers 1

createDirectoryWatcherFunction · 0.85

Calls 5

directoryExistsFunction · 0.85
invokeCallbacksFunction · 0.85
removeChildWatchesFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected