Skip to content

Commit a3597fa

Browse files
Add files via upload
1 parent e7d5783 commit a3597fa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

zip/unzip_zipfile.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import zipfile
2+
import os
3+
4+
def unzip(self, full_zip_fname):
5+
print(f"[unzip] full_zip_fname: {full_zip_fname}")
6+
with zipfile.ZipFile(full_zip_fname, 'r') as zip_ref:
7+
csv_fname = os.path.join(self.working_dir, zip_ref.namelist()[0])
8+
zip_ref.extractall(self.working_dir)
9+
zip_ref.close()
10+
print(f"\tDone.")
11+
return csv_fname

0 commit comments

Comments
 (0)