Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python zip extract directory

import zipfile

archive = zipfile.ZipFile('archive.zip')

for file in archive.namelist():
    if file.startswith('foo/'):
        archive.extract(file, 'destination_path')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #zip #extract #directory
ADD COMMENT
Topic
Name
5+4 =