Zip icon indicating copy to clipboard operation
Zip copied to clipboard

About errors

Open PjotrC opened this issue 7 years ago • 1 comments

If the specified folder, which should be zipped, does not exist, following error is thrown:

Error Domain=Zip.ZipError Code=2 "(null)"

This description is not very helpful. However: if the specified folder, where the zipped archive should be stored, does not exist, no error occurs.

PjotrC avatar Jul 24 '16 14:07 PjotrC

Based on the source code ,it defines three error types ,so checking whether the folder is existing or not ,that's necessary ,for the framework it lack of smart error handle to do these thing

`public enum ZipError: Error { /// File not found case fileNotFound /// Unzip fail case unzipFail /// Zip fail case zipFail

}`

MarcSteven avatar Mar 02 '19 10:03 MarcSteven