diff options
Diffstat (limited to 'node_modules/chokidar/lib/fsevents-handler.js')
| -rw-r--r-- | node_modules/chokidar/lib/fsevents-handler.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node_modules/chokidar/lib/fsevents-handler.js b/node_modules/chokidar/lib/fsevents-handler.js index 0f7f2cba..fe29393c 100644 --- a/node_modules/chokidar/lib/fsevents-handler.js +++ b/node_modules/chokidar/lib/fsevents-handler.js @@ -37,6 +37,7 @@ const { FSEVENT_MOVED, // FSEVENT_CLONED, FSEVENT_UNKNOWN, + FSEVENT_FLAG_MUST_SCAN_SUBDIRS, FSEVENT_TYPE_FILE, FSEVENT_TYPE_DIRECTORY, FSEVENT_TYPE_SYMLINK, @@ -148,6 +149,7 @@ function setFSEventsListener(path, realPath, listener, rawEmitter) { rawEmitter, watcher: createFSEventsInstance(watchPath, (fullPath, flags) => { if (!cont.listeners.size) return; + if (flags & FSEVENT_FLAG_MUST_SCAN_SUBDIRS) return; const info = fsevents.getInfo(fullPath, flags); cont.listeners.forEach(list => { list(fullPath, flags, info); |
