mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use node-pathwatcher.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user