Skip to content

Commit

Permalink
unneeded
Browse files Browse the repository at this point in the history
  • Loading branch information
ttezel committed May 17, 2012
1 parent b3d1792 commit 0cb41c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/client.js
Expand Up @@ -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') })
Expand Down

0 comments on commit 0cb41c3

Please sign in to comment.