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 @@ -626,7 +626,7 @@ class DirectoryWatcher extends EventEmitter {
626626 }
627627 } ) ;
628628 for ( const itemPath of itemPaths ) {
629- const handleStats = ( err2 , stats ) => {
629+ fs . stat ( itemPath , ( err2 , stats ) => {
630630 if ( this . closed ) return ;
631631 if ( err2 ) {
632632 if (
@@ -653,12 +653,6 @@ class DirectoryWatcher extends EventEmitter {
653653 true ,
654654 "scan (file)"
655655 ) ;
656- if (
657- this . watcherManager . options . followSymlinks &&
658- stats . isSymbolicLink ( )
659- ) {
660- fs . stat ( itemPath , handleStats ) ;
661- }
662656 } else if ( stats . isDirectory ( ) ) {
663657 if ( ! initial || ! this . directories . has ( itemPath ) )
664658 this . setDirectory (
@@ -669,8 +663,7 @@ class DirectoryWatcher extends EventEmitter {
669663 ) ;
670664 }
671665 itemFinished ( ) ;
672- } ;
673- fs . lstat ( itemPath , handleStats ) ;
666+ } ) ;
674667 }
675668 itemFinished ( ) ;
676669 } ) ;
You can’t perform that action at this time.
0 commit comments