Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixing small bug in FSWatcher #34

Merged
merged 1 commit into from

2 participants

@pose

Fixes a small typo where a relative path is converted to absolute. Then the relative path is used (not the new one that is left unused).

Thanks in advance,

@paulmillr paulmillr merged commit e8b6b20 into paulmillr:master
@pose

Sorry, can I ask you to upload the new version to npm? Thanks in advance

@paulmillr
Owner

sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 3, 2013
  1. @pose
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +1 −1  package.json
  2. +1 −1  src/index.coffee
View
2  package.json
@@ -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
2  src/index.coffee
@@ -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
Something went wrong with that request. Please try again.