Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract to specific folder #100

Open
ganego opened this issue Mar 2, 2020 · 2 comments
Open

Extract to specific folder #100

ganego opened this issue Mar 2, 2020 · 2 comments
Labels

Comments

@ganego
Copy link

ganego commented Mar 2, 2020

def extract_file(filepath, flags=0):
    """Extracts an archive from a file into the current directory."""

May I propose an optional arg to specify the folder I want to extract to?

@Changaco
Copy link
Owner

Changaco commented Mar 2, 2020

As far as I know libarchive doesn't support that, so we would have to call chdir, and I'm not sure that's a good idea.

@ganego
Copy link
Author

ganego commented Mar 5, 2020

I see. Ok then it's one of the many limitations of libarchive I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants