Zip
Zip copied to clipboard
About errors
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.
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
}`