Skip to content

Panics when trying to compress folder with non-archive format #96

@marcospb19

Description

@marcospb19

Instead of panicking like this:

# src/ is a folder
$ cargo run -q -- c src src.xz
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/commands.rs:70:85
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Should give a helpful error message, saying that its impossible to compress a folder with .xz.

Same applies for .gz, .bz and .zst.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions