Answers for "ZipFile in python to extract specific files"

0

how to save unzipped files in python

import zipfile
def un_zipFiles(path):
    files=os.listdir(path)
    for file in files:
        if file.endswith('.zip'):
            filePath=path+'/'+file
            zip_file = zipfile.ZipFile(filePath)
            for names in zip_file.namelist():
                zip_file.extract(names,path)
            zip_file.close()
Posted by: Guest on June-26-2020

Code answers related to "ZipFile in python to extract specific files"

Python Answers by Framework

Browse Popular Code Answers by Language