Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,4 +23,15 @@ if uploaded_file is not None:
|
|
23 |
with open(os.path.join("tempDir",uploaded_file.name),"wb") as f:
|
24 |
f.write(uploaded_file.getbuffer())
|
25 |
st.success("Saved File")
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
with open(os.path.join("tempDir",uploaded_file.name),"wb") as f:
|
24 |
f.write(uploaded_file.getbuffer())
|
25 |
st.success("Saved File")
|
26 |
+
|
27 |
+
|
28 |
+
# Specify the directory path
|
29 |
+
directory_path = 'path/to/directory'
|
30 |
+
|
31 |
+
# List all files in directory and subdirectories
|
32 |
+
files = []
|
33 |
+
for root, dirs, file_names in os.walk(path):
|
34 |
+
for file_name in file_names:
|
35 |
+
files.append(os.path.join(root, file_name))
|
36 |
+
|
37 |
+
st.write(files)
|