w3robotics commited on
Commit
ccb54a0
·
verified ·
1 Parent(s): c892be7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
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)