Update app.py
Browse files
app.py
CHANGED
|
@@ -110,9 +110,12 @@ def get_f(r_name,spaces,token):
|
|
| 110 |
#files_c.append(f'{uid}/{file}')
|
| 111 |
|
| 112 |
print(file)
|
| 113 |
-
with
|
| 114 |
-
|
| 115 |
-
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
return(files_b,spaces_b)
|
| 118 |
|
|
|
|
| 110 |
#files_c.append(f'{uid}/{file}')
|
| 111 |
|
| 112 |
print(file)
|
| 113 |
+
with tarfile.open(f'{space}.tar.gz','w:gz') as tar:
|
| 114 |
+
tar.add(f"./{space}",arcname=os.path.basename(f"./{space}"))
|
| 115 |
+
#frame_tar_box.append(Path(f'frames{timestr}.tar.gz'))
|
| 116 |
+
#with zipfile.ZipFile(f'{space}.zip', 'w') as new_zip:
|
| 117 |
+
# new_zip.write(f'{space}/', compress_type=zipfile.ZIP_DEFLATED)
|
| 118 |
+
spaces_b.append(f'{space}.tar.gz')
|
| 119 |
|
| 120 |
return(files_b,spaces_b)
|
| 121 |
|