Skip to content

Conversation

marcospb19
Copy link
Member

Now working for formats that are not archives.

This now works:

ouch compress LICENSE LICENSE.xz

Fixes #87.

Now working for formats that are not archives, like file.gz and file.xz
@vrmiguel
Copy link
Member

vrmiguel commented Oct 14, 2021

The new changes do work but I noticed that a there's a panic when decompressing these kinds of files to a new folder

# Works
❯ cargo run -- c src/main.rs main.rs.xz 

# Panics
❯ cargo run -- d main.rs.xz -o some-new-folder
thread 'main' panicked at 'No such file or directory (os error 2)', src/error.rs:173:45
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Although that's probably a matter for another issue

@marcospb19
Copy link
Member Author

Sheesh, I will create another issue and merge this one to close #87 already.

@vrmiguel vrmiguel merged commit c89c34a into master Oct 14, 2021
@vrmiguel vrmiguel added the hacktoberfest-accepted Tag PR as accepted for the hacktoberfest event label Oct 14, 2021
@marcospb19 marcospb19 deleted the fix-single-format-compression branch October 14, 2021 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Tag PR as accepted for the hacktoberfest event
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compressing a single file to a single format that's not tar or zip panics
3 participants