bupa1018 commited on
Commit
5479cc7
·
1 Parent(s): e799f0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -91,6 +91,21 @@ def download_gitlab_repo():
91
  print("Upload complete")
92
 
93
  def get_all_files_in_folder(temp_dir, partial_paths):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  print("inside the get all files in folder method")
95
  all_files = []
96
 
 
91
  print("Upload complete")
92
 
93
  def get_all_files_in_folder(temp_dir, partial_paths):
94
+
95
+ # List to store paths of all subordinate directories
96
+ subordinate_dirs = []
97
+
98
+ # Walk through the directory structure
99
+ for root, dirs, files in os.walk(temp_dir, topdown=True):
100
+ for dir_name in dirs:
101
+ dir_path = os.path.join(root, dir_name)
102
+ subordinate_dirs.append(dir_path)
103
+
104
+ # Print all subordinate directory paths
105
+ for path in subordinate_dirs:
106
+ print(path)
107
+
108
+
109
  print("inside the get all files in folder method")
110
  all_files = []
111