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

IOException with alias #15

Open
dream7prod opened this issue Nov 20, 2019 · 3 comments
Open

IOException with alias #15

dream7prod opened this issue Nov 20, 2019 · 3 comments
Labels
bug enhancement Improvements that do not change the public API PKZip Zip archive module USTAR Tape archive module

Comments

@dream7prod
Copy link

When we try to compress a folder with alias in it, an IOException (21) occurs.
The same with any archive format.
It would be great if the archiver could handle alias files as many Applications folder have Frameworks and have several alias in them.

If we make an archive with external archiver that handles aliases and unarchive it with RB-zlib the aliases are juste empty files that doesn't work.

@charonn0
Copy link
Owner

Aliases aren't supported by the official ZIP spec, so it's probably an Apple-specific extension to the format. I don't have a Mac to test on; can you upload an example zip archive containing alias files for me to look at?

@charonn0 charonn0 added bug PKZip Zip archive module USTAR Tape archive module enhancement Improvements that do not change the public API labels Nov 21, 2019
@dream7prod
Copy link
Author

Here is a zip archive with an alias to a file and an alias to a folder.
Thanks.
Archive.zip

@charonn0
Copy link
Owner

Sorry for the delay in getting back to this. It appears that Apple stores the alias in the "external attributes" section of the zip table of contents. This will make it difficult to add support for extracting them since we pretty much ignore the table of contents when extracting. I'll have to think about it some more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug enhancement Improvements that do not change the public API PKZip Zip archive module USTAR Tape archive module
Projects
None yet
Development

No branches or pull requests

2 participants