Update app.py
Browse files
app.py
CHANGED
@@ -40,6 +40,14 @@ snapshot_download(
|
|
40 |
token=TOKEN
|
41 |
)
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
def get_all_folders(directory):
|
45 |
folders = []
|
|
|
40 |
token=TOKEN
|
41 |
)
|
42 |
|
43 |
+
def print_files_and_sizes(directory):
|
44 |
+
for root, dirs, files in os.walk(directory):
|
45 |
+
for file in files:
|
46 |
+
file_path = os.path.join(root, file)
|
47 |
+
file_size = os.path.getsize(file_path)
|
48 |
+
print(f"File: {file_path} Size: {file_size} bytes")
|
49 |
+
|
50 |
+
print_files_and_sizes('./CTFAIA')
|
51 |
|
52 |
def get_all_folders(directory):
|
53 |
folders = []
|