Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unzipping also returns unzipped url to a corrupted file in a __MACOSX directory #231

Open
berzzani opened this issue Feb 10, 2022 · 0 comments

Comments

@berzzani
Copy link

When unzipping a file to a directory toDir using this call:

try Zip.unzipFile(zippedFileUrl, destination: toDirUrl, overwrite: true, password: nil, progress: nil) { (url) in ... }

the closure gets called twice. First time with the url to the unzipped file in toDirUrl, so something like:

..../toDirUrl/myfile.png

the closure then gets called a second time pointing to:

..../toDirUrl/__MACOSX/._myfile.png

Problem is that ..../toDirUrl/__MACOSX/._myfile.png is no good. Image is not readable. Also, not sure why I get called to let me know that unzipped file is in ..../toDirUrl/__MACOSX/._myfile.png when I already have a good readable version of it exactly at the path I specified ..../toDirUrl.

So, now I have to special case and ignore any url pointing to the ..../toDirUrl/__MACOSX/... directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants