Skip to content

Commit

Permalink
Merge f283a90 into 8cb52cd
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondYuan committed May 28, 2020
2 parents 8cb52cd + f283a90 commit 880412f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DirectoryWatcher.js
Expand Up @@ -235,7 +235,7 @@ DirectoryWatcher.prototype.watch = function watch(filePath, startTime) {
if(data) {
var ts = data[0] === data[1] ? data[0] + FS_ACCURACY : data[0];
if(ts >= startTime)
watcher.emit("change", data[1]);
watcher.emit("change", filePath, data[1]);
} else if(this.initialScan && this.initialScanRemoved.indexOf(filePath) >= 0) {
watcher.emit("remove");
}
Expand Down

0 comments on commit 880412f

Please sign in to comment.