Skip to content

Commit

Permalink
Fix following of new symlinks (fsevents)
Browse files Browse the repository at this point in the history
  • Loading branch information
es128 committed Dec 4, 2014
1 parent adc37b2 commit 3f5dbdf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,11 @@ FSWatcher.prototype._watchWithFsEvents = function(watchPath, realPath, pt) {
if (checkIgnored()) return;
if (event === 'add') {
this._getWatchedDir(parent).add(item);
if (info.type === 'directory') this._getWatchedDir(path);
if (info.type === 'directory') {
this._getWatchedDir(path);
} else if (info.type === 'symlink' && this.options.followSymlinks) {
return this._addToFsEvents(path);
}
}
var eventName = info.type === 'directory' ? event + 'Dir' : event;
this._emit(eventName, path);
Expand Down

0 comments on commit 3f5dbdf

Please sign in to comment.