# File lib/zip/zip.rb, line 1460 def replace(entry, srcPath) check_file(srcPath) add(remove(entry), srcPath) end