Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,13 +37,13 @@ def zip_subdirs(start_dir):
|
|
| 37 |
for subdir, dirs, files in os.walk(start_dir):
|
| 38 |
if subdir != start_dir: # Skip the root directory
|
| 39 |
zip_filename = os.path.join(start_dir, subdir.split(os.sep)[-1] + '.zip')
|
| 40 |
-
|
| 41 |
with zipfile.ZipFile(zip_filename, 'w') as zipf:
|
| 42 |
for file in files:
|
| 43 |
file_path = os.path.join(subdir, file)
|
| 44 |
zipf.write(file_path, os.path.relpath(file_path, start_dir))
|
| 45 |
-
|
| 46 |
-
|
| 47 |
yield zip_filename
|
| 48 |
|
| 49 |
def get_zip_download_link(zip_file):
|
|
|
|
| 37 |
for subdir, dirs, files in os.walk(start_dir):
|
| 38 |
if subdir != start_dir: # Skip the root directory
|
| 39 |
zip_filename = os.path.join(start_dir, subdir.split(os.sep)[-1] + '.zip')
|
| 40 |
+
allFileSummary = ""
|
| 41 |
with zipfile.ZipFile(zip_filename, 'w') as zipf:
|
| 42 |
for file in files:
|
| 43 |
file_path = os.path.join(subdir, file)
|
| 44 |
zipf.write(file_path, os.path.relpath(file_path, start_dir))
|
| 45 |
+
allFileSummary=allFileSummary+(f"Added: {file_path}")
|
| 46 |
+
st.write(allFileSummary)
|
| 47 |
yield zip_filename
|
| 48 |
|
| 49 |
def get_zip_download_link(zip_file):
|