File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ class DirectoryWatcher extends EventEmitter {
393393 if ( this . closed ) return ;
394394 this . _activeEvents . set ( filename , false ) ;
395395
396- const handleStats = ( err , stats ) => {
396+ fs . lstat ( filePath , ( err , stats ) => {
397397 if ( this . closed ) return ;
398398 if ( this . _activeEvents . get ( filename ) === true ) {
399399 process . nextTick ( checkStats ) ;
@@ -439,15 +439,8 @@ class DirectoryWatcher extends EventEmitter {
439439 false ,
440440 eventType
441441 ) ;
442- if (
443- this . watcherManager . options . followSymlinks &&
444- stats . isSymbolicLink ( )
445- ) {
446- fs . stat ( filePath , handleStats ) ;
447- }
448442 }
449- } ;
450- fs . lstat ( filePath , handleStats ) ;
443+ } ) ;
451444 } ;
452445 process . nextTick ( checkStats ) ;
453446 } else {
You can’t perform that action at this time.
0 commit comments