We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d5783 commit a3597faCopy full SHA for a3597fa
zip/unzip_zipfile.py
@@ -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