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