lib/dbox/syncer.rb in dbox-0.7.5 vs lib/dbox/syncer.rb in dbox-0.7.6

- old
+ new

@@ -388,10 +388,10 @@ # stream files larger than the minimum stream = file[:size] && file[:size] > MIN_BYTES_TO_STREAM_DOWNLOAD # download to temp file tmp = generate_tmpfilename(file[:path]) - File.open(tmp, "w") do |f| + File.open(tmp, "wb") do |f| api.get_file(remote_path, f, stream) end # rename old file if clobbering if clobbering && File.exists?(local_path)