diff --git a/lib/DirectoryWatcher.js b/lib/DirectoryWatcher.js index dad68e9..e7279df 100644 --- a/lib/DirectoryWatcher.js +++ b/lib/DirectoryWatcher.js @@ -102,6 +102,7 @@ DirectoryWatcher.prototype.setFileTime = function setFileTime(filePath, mtime, i }); } } else if(!initial && !mtime) { + delete this.files[filePath]; if(this.watchers[withoutCase(filePath)]) { this.watchers[withoutCase(filePath)].forEach(function(w) { w.emit("remove");