python-libarchive-c icon indicating copy to clipboard operation
python-libarchive-c copied to clipboard

Extract to specific folder

Open ganego opened this issue 5 years ago • 2 comments

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?

ganego avatar Mar 02 '20 16:03 ganego

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.

Changaco avatar Mar 02 '20 22:03 Changaco

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

ganego avatar Mar 05 '20 09:03 ganego