Merge branch 'master' of github.com:johnbintz/unison-watch
This commit is contained in:
commit
2663880c85
@ -88,6 +88,8 @@ class UnisonWatcher < Qt::Application
|
|||||||
require 'rb-inotify'
|
require 'rb-inotify'
|
||||||
@watch = INotify::Notifier.new
|
@watch = INotify::Notifier.new
|
||||||
Thread.current[:paths].each do |path|
|
Thread.current[:paths].each do |path|
|
||||||
|
FileUtils.mkdir_p path
|
||||||
|
|
||||||
@watch.watch path, :recursive, :modify, :create, :delete do |event|
|
@watch.watch path, :recursive, :modify, :create, :delete do |event|
|
||||||
Thread.current[:app] << event.absolute_name
|
Thread.current[:app] << event.absolute_name
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user