Use node-pathwatcher.

This commit is contained in:
Cheng Zhao
2013-04-07 16:18:08 +08:00
parent 20580a5da8
commit e0865e8c38
7 changed files with 20 additions and 20 deletions

View File

@@ -312,11 +312,3 @@ module.exports =
cson.readObjectAsync(path, done)
else
@readPlistAsync(path, done)
watchPath: (path, callback) ->
path = @absolute(path)
watchCallback = (eventType, eventPath) =>
path = @absolute(eventPath) if eventType is 'move'
callback(arguments...)
id = $native.watchPath(path, watchCallback)
unwatch: -> $native.unwatchPath(path, id)