File list in upload directory

I am using st.file_uploader to upload file to a folder in server
How to list the files on directory to dataframe?
After uploading the file i need a dataframe that contain the list of files in that directory with their column information such as file name, date modified, Type, Size for example like on windows file explorer
Thank you

Hi, here is an example:

import streamlit as st
uploaded_file = st.file_uploader("please upload your data file", type=["xls","xlsx","csv"], accept_multiple_files=True)
if uploaded_file is not None:
  for i in range(len(uploaded_file)):
      head, sep, tail = str(uploaded_file[i].name).partition(".")
      st.write("file name:"+str(head))
      st.write("file type:"+str(tail))
      st.write(uploaded_file) #list of your files that you uploaded

so far, we can get the file name, file type, but can not get modification date.
file size will be showed at right direction of your file name.

if you want to save these information to a dataframe, you can save them into a list first and transfrom list into dataframe like this:

from pandas import DataFrame
c={"a" : a, "b" : b}

Hello @BeyondMyself
Thank you for your reply
Btw i need the code read actual folder and get the list of the files in that folder
i try this code but still error

def file_list_in_directory():
    p = Path.cwd() + "/Folder"
    all_files = []
    for i in p.rglob('*.xls*'):
        all_files.append((, i.parent, time.ctime(i.stat().st_ctime)))
    columns = ["File_Name", "Parent", "Created"]
    df = pd.DataFrame.from_records(all_files, columns=columns)

note: my streamlit app get accessed by user through local area network

please try the os module like this:

import os
import streamlit as st
for root, dirs, files in os.walk("your folder directory"):
      for file in files:
             filename=os.path.join(root, file)

in this way, you can get all of the filename in your path, for other parameters, please do more test

Dear @BeyondMyself
Thank you, now i got the path and filename
I will try for another parameter