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

filename extension is lost on unzip #176

Open
vim-zz opened this issue Nov 27, 2018 · 1 comment
Open

filename extension is lost on unzip #176

vim-zz opened this issue Nov 27, 2018 · 1 comment

Comments

@vim-zz
Copy link

vim-zz commented Nov 27, 2018

I don't know if its a gzip issue or flate2 issue, but in the gzbuilder example, when I open unarchive tools on my Mac, I get the original filename without the original extension.

To reproduce just run the example:

cargo run --example gzbuilder

On on Mac, open the Finder and click on the result gz file under examples. I would expect to see a new file named hello_world.txt but I see hello_world

keep up the good work!

@alexcrichton
Copy link
Member

Thanks for the report! This is probably just a filename naming convention where the file is named hello_world.gz instead of hello_world.txt.gz, and the default tools may just chop off the .gz trailing name to produce the new filename. Should be an easy update to the example though!

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

2 participants