Skip to content

Allow extraction to existing folders #219

@8W9aG

Description

@8W9aG

I was using pget to download a tarball and extract to the root of my container / with the following command:

pget "https://storage.googleapis.com/xxx/xxx/xxx.tar.gz" / -x

I receive the following error message:

Error: destination / already exists

Would the pget team be amenable to me making the change that allows extraction to already existing directories? I currently I work around this by doing the following:

pget "https://storage.googleapis.com/xxx/xxx/xxx.tar.gz" "/tmp/usrfile.tar.gz"
tar xf "/tmp/usrfile.tar.gz" -C /
rm "/tmp/usrfile.tar.gz"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions