Files
HowBadIsMyBatch/src/zipUtils.py
frankknoll d94869181b refactoring
2022-11-22 13:22:00 +01:00

13 lines
230 B
Python

import zipfile
import os
def unzip(zipFile, dstDir):
with zipfile.ZipFile(zipFile, 'r') as zip_ref:
zip_ref.extractall(dstDir)
def unzipAndRemove(zipFile, dstDir):
unzip(zipFile, dstDir)
os.remove(zipFile)