Continusally to Unzip zip files in folders and subfolders with python - i didn't get an answer. i work with python 2.7.8 and arcmap 10.3
and i don't why this code does not work with python 2.7.8:
- import zipfile
- import arcpy,os,os.path,sys
- from arcpy import env
- pattern = '*.zip'
- folder = r"C:\Project\layers"
- files_process = 
- for root,dirs,files in os.walk(r"C:\Project\layers"):
- for filenames in files:
- if filenames == pattern:
- files_process.append(os.path.join(root, filenames))