lib/tori/backend/filesystem.rb in tori-0.0.8 vs lib/tori/backend/filesystem.rb in tori-0.0.9

- old
+ new

@@ -12,9 +12,10 @@ when String ::File.open(path(filename), 'w'){ |f| f.write resource } when Pathname # see also https://bugs.ruby-lang.org/issues/11199 ::File.open(resource) { |src| + FileUtils.mkdir_p path(filename).dirname ::File.open(path(filename), 'w'){ |dst| ::IO.copy_stream src, dst } } else