bupa1018 commited on
Commit
e0af1aa
·
1 Parent(s): da0c2cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -79,15 +79,16 @@ manage_hf_files(HF_TOKEN)
79
  #initialize()
80
 
81
 
82
- directory = "data" # Replace with your directory path
 
83
 
84
- # List all file paths in the directory
85
- file_paths = [os.path.join(directory, file) for file in os.listdir(directory)]
 
 
 
 
86
 
87
- # Print all file paths
88
- print("Files in the directory:")
89
- for path in file_paths:
90
- print(path)
91
 
92
 
93
 
 
79
  #initialize()
80
 
81
 
82
+ # Starting from the root directory
83
+ start_directory = "/"
84
 
85
+ # Walk through the entire file system and list all files
86
+ print("Listing all files starting from the root directory:")
87
+ for root, dirs, files in os.walk(start_directory):
88
+ for file in files:
89
+ file_path = os.path.join(root, file)
90
+ print(file_path)
91
 
 
 
 
 
92
 
93
 
94