Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,15 +79,16 @@ manage_hf_files(HF_TOKEN)
|
|
| 79 |
#initialize()
|
| 80 |
|
| 81 |
|
| 82 |
-
|
|
|
|
| 83 |
|
| 84 |
-
#
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|