diff --git a/bin/unison-watch b/bin/unison-watch index a130777..a9c79ea 100755 --- a/bin/unison-watch +++ b/bin/unison-watch @@ -88,6 +88,8 @@ class UnisonWatcher < Qt::Application require 'rb-inotify' @watch = INotify::Notifier.new Thread.current[:paths].each do |path| + FileUtils.mkdir_p path + @watch.watch path, :recursive, :modify, :create, :delete do |event| Thread.current[:app] << event.absolute_name end