Skip to content

When decompressing with --format, don't overwrite input #442

Description

@marcospb19

When using the --format flag, Ouch will decompress the output while overwriting the input file.

 $ touch file                           
 $ ouch compress file file.zst.zst.zst
[INFO] Successfully compressed 'file.zst.zst.zst'.
 $ ouch decompress file.zst.zst.zst --format zst   
Do you want to overwrite './file.zst.zst.zst'? [Y/n] 
...

It doesn't make sense to save the output file with the same name as it's input.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions