From d3a83f18776a575acba05dc451aa3a45c89b19ea Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 4 May 2012 00:03:23 -0400 Subject: [PATCH] mkdirs --- bin/unison-watch | 2 ++ 1 file changed, 2 insertions(+) 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