lib/rapinoe/keynote.rb in rapinoe-0.0.1 vs lib/rapinoe/keynote.rb in rapinoe-0.0.2

- old
+ new

@@ -45,9 +45,10 @@ # # path - The path to the new file you want to write. # # Returns nothing. def write_preview_to_file(path) + FileUtils.mkdir_p(File.dirname(path)) File.open(path, 'wb') do |out| out.write(preview_data) end end