Permalink
Browse files

unneeded

  • Loading branch information...
1 parent b3d1792 commit 0cb41c33cd1de7ab60eee9528b4912455e87f193 @ttezel committed May 17, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/client.js
View
8 lib/client.js
@@ -74,10 +74,10 @@ Client.prototype.watchPath = function (fpath) {
})
finder.on('file', function (file, stat) {
self.cache[stat.ino] = { fpath: file, stat: stat }
- var abspath = path.resolve(fpath, file)
- return fs.watch(abspath, function (event, filename) {
- if (self.ignoreChanges.indexOf(abspath) === -1)
- return self.updateRemote(event, abspath)
+ return fs.watch(file, function (event, filename) {
+ console.log('watched file %s had a %s event', filename, event)
+ if (self.ignoreChanges.indexOf(file) === -1)
+ return self.updateRemote(event, file)
})
})
finder.on('end', function () { self.emit('ready') })

0 comments on commit 0cb41c3

Please sign in to comment.