Permalink
Browse files

Merge pull request #34 from pose/realpath-bug

Fixing small bug in FSWatcher
  • Loading branch information...
2 parents 53d071c + 9190269 commit e8b6b200ca27812cb100dace82486031dc870b38 @paulmillr committed Jan 3, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 src/index.coffee
View
@@ -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)",
View
@@ -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

0 comments on commit e8b6b20

Please sign in to comment.