refactoring

This commit is contained in:
frankknoll
2022-11-22 13:22:00 +01:00
parent 80e94c92d4
commit d94869181b
5 changed files with 164 additions and 194 deletions

12
src/zipUtils.py Normal file
View File

@@ -0,0 +1,12 @@
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)