Answers for "python unzip all files in directory"

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
0

unzip in folder

unzip package.zip -d /opt
Posted by: Guest on December-21-2020

Code answers related to "python unzip all files in directory"

Python Answers by Framework

Browse Popular Code Answers by Language