Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

extract directory python

import zipfile
inpath = MyDirPath
outpath = inpath.replace(".zip", "") # Remove zip extension so that outpath does not have .zip
        with zipfile.ZipFile(inpath, 'r') as z:
            z.extractall(outpath) # Extracts
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #extract #directory #python
ADD COMMENT
Topic
Name
7+3 =