Permalink
Browse files

Replacing relative path with retrieved absolute.

  • Loading branch information...
1 parent 53d071c commit 9190269f9505d6bfd1729bb33723426e5e701425 @pose pose 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 9190269

Please sign in to comment.