refactoring
This commit is contained in:
12
src/zipUtils.py
Normal file
12
src/zipUtils.py
Normal 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)
|
||||
Reference in New Issue
Block a user