Fixed replace method

This commit is contained in:
Lucas Hills 2012-02-06 11:57:06 +11:00
parent 26ec16866e
commit 183deb7be0
1 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,8 @@ module Zip
# the file system). # the file system).
def replace(entry, srcPath) def replace(entry, srcPath)
check_file(srcPath) check_file(srcPath)
add(remove(entry), srcPath) remove(entry)
add(entry, srcPath)
end end
# Extracts entry to file destPath. # Extracts entry to file destPath.