Spaces:
Runtime error
Runtime error
konstantinG
commited on
Commit
•
8172bbb
1
Parent(s):
10c4f63
Update unzip.py
Browse files
unzip.py
CHANGED
@@ -2,11 +2,11 @@ import os
|
|
2 |
import zipfile
|
3 |
|
4 |
def unzip(zip_file):
|
5 |
-
if not os.path.exists('
|
6 |
-
os.makedirs('
|
7 |
print('1')
|
8 |
with zipfile.ZipFile(zip_file, 'r') as zip:
|
9 |
-
zip.extractall('
|
10 |
print('2')
|
11 |
|
12 |
|
|
|
2 |
import zipfile
|
3 |
|
4 |
def unzip(zip_file):
|
5 |
+
if not os.path.exists('img_folder'):
|
6 |
+
os.makedirs('img_folder')
|
7 |
print('1')
|
8 |
with zipfile.ZipFile(zip_file, 'r') as zip:
|
9 |
+
zip.extractall('img_folder')
|
10 |
print('2')
|
11 |
|
12 |
|