Zip
Zip copied to clipboard
Zip fail to unzip when there's file with same name but with different capatilization
Steps to reproduce
- Create a file named "test.txt"
- Zip the file and name it "Zip A.zip"
- Create another file name "Test.txt"
- Zip the file and name it "ZipB.zip"
- First unzip Zip A into document path
- Zip A succeed
- Now unzip Zip B with overwrite flag set to true
- Zip B fails
- Delete test.txt and unzip Zip B
- Zip B succeed
File name should be case insensitive as if there's an existing file name with capitalization, Mac's unarchive utility creates a new file. (e.g "Test 2.txt")
At the very least, even if it doesn't override, it should create a new file instead of throwing an error.