Fixed replace method
This commit is contained in:
parent
26ec16866e
commit
183deb7be0
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue