import streamlit as st import os uploaded_file = st.sidebar.file_uploader("Choose a file") if uploaded_file is not None: filename = uploaded_file.name with open(filename, "wb") as f: f.write(uploaded_file.getbuffer()) st.write(os.listdir("./")) st.write(os.listdir("/")) st.write(os.listdir("/home")) st.write(os.listdir("/media"))