awacke1 commited on
Commit
79669e5
·
1 Parent(s): 2809ed6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -37,11 +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
  with zipfile.ZipFile(zip_filename, 'w') as zipf:
41
  for file in files:
42
  file_path = os.path.join(subdir, file)
43
  zipf.write(file_path, os.path.relpath(file_path, start_dir))
44
- st.write(f"Added: {file_path}")
 
45
  yield zip_filename
46
 
47
  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):