Skip to content

Commit

Permalink
Merge pull request #34 from pose/realpath-bug
Browse files Browse the repository at this point in the history
Fixing small bug in FSWatcher
  • Loading branch information
paulmillr committed Jan 3, 2013
2 parents 53d071c + 9190269 commit e8b6b20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chokidar",
"description": "A neat wrapper around node.js fs.watch / fs.watchFile.",
"version": "0.5.0",
"version": "0.5.1",
"keywords": ["fs", "watch", "watchFile", "watcher", "file"],
"homepage": "https://github.com/paulmillr/chokidar",
"author": "Paul Miller (http://paulmillr.com)",
Expand Down
2 changes: 1 addition & 1 deletion src/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ exports.FSWatcher = class FSWatcher extends EventEmitter
fs.realpath item, (error, path) =>
return @emit 'error', error if error?
# Get file info, check is it file, directory or something else.
fs.stat item, (error, stats) =>
fs.stat path, (error, stats) =>
return @emit 'error', error if error?
if @options.ignorePermissionErrors and (not @_hasReadPermissions stats)
return
Expand Down

0 comments on commit e8b6b20

Please sign in to comment.