(dirName, dirPath, fileName, options)
| 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) { |
no test coverage detected