extras/zip/zip.rb in rwdtinker-1.70 vs extras/zip/zip.rb in rwdtinker-1.71
- old
+ new
@@ -1045,11 +1045,12 @@
end
end
def write_file(entry, destPath, continueOnExistsProc = proc { false })
if File.exists?(destPath) && ! yield(entry, destPath)
- raise ZipDestinationFileExistsError,
- "Destination '#{destPath}' already exists"
+
+# raise ZipDestinationFileExistsError,
+ $stderr.puts "Destination '#{destPath}' already exists"
end
File.open(destPath, "wb") {
|os|
entry.get_input_stream { |is| os << is.read }
}