SyntaxFix
Write A Post
Hire A Developer
Questions
After mounting on drive, use shutil.unpack_archive. It works with almost all archive formats (e.g., “zip”, “tar”, “gztar”, “bztar”, “xztar”) and it's simple:
import shutil shutil.unpack_archive("filename", "path_to_extract")