Skip to content

Ouch fails when crossing filesystem boundaries #857

@marcospb19

Description

@marcospb19

Version

0.6.1

Description

Ouch uses fs::rename (equivalent to mv) to perform atomic decompression, and "smart unpack" (flattening of decompressed archives when the the top-level directory is another directory, requiring you to cd twice before you see any content).

However, that doesn't work when the renamed file paths are in two different file paths, as that wouldn't be cheap.

Ouch should fallback to copying, or, if possible, find a solution that doesn't require having 2 entire copies of a huge file in disk at the same time (is there a way to avoid that??)

Current Behavior

When decompressing, fails when --dir directory lives in another FS, or, when merging contents into a directory that does so.

Expected Behavior

Shouldn't fail, even if it means we'll take some compromises.

Additional Information

No response

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