lib/sigh/manager.rb in sigh-1.1.1 vs lib/sigh/manager.rb in sigh-1.1.2
- old
+ new
@@ -12,9 +12,10 @@
file_name = Sigh.config[:filename]
else
file_name = File.basename(path)
end
+ FileUtils.mkdir_p(Sigh.config[:output_path])
output = File.join(File.expand_path(Sigh.config[:output_path]), file_name)
begin
FileUtils.mv(path, output)
rescue
# in case it already exists