python-libarchive-c
python-libarchive-c copied to clipboard
Extract to specific folder
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?
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.
I see. Ok then it's one of the many limitations of libarchive I guess.