Skip to content

Commit

Permalink
Update DirectoryWatcher.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cseitz committed Aug 31, 2023
1 parent dc690bb commit 2815ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DirectoryWatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class DirectoryWatcher extends EventEmitter {
const checkStats = () => {
if (this.closed) return;
this._activeEvents.set(filename, false);
fs.lstat(filePath, (err, stats) => {
fs.stat(filePath, (err, stats) => {
if (this.closed) return;
if (this._activeEvents.get(filename) === true) {
process.nextTick(checkStats);
Expand Down Expand Up @@ -625,7 +625,7 @@ class DirectoryWatcher extends EventEmitter {
}
});
for (const itemPath of itemPaths) {
fs.lstat(itemPath, (err2, stats) => {
fs.stat(itemPath, (err2, stats) => {
if (this.closed) return;
if (err2) {
if (
Expand Down

0 comments on commit 2815ca7

Please sign in to comment.