Hi - I am unable to refresh data from S3.
from pathlib import Path from s3fs import S3FileSystem as s3 # @st.cache(ttl=2) def get_run_names(): """List existing run names""" BASE_PATH = "[INSERT_S3_DIRECTORY_HERE]" run_names = [Path(file).stem for file in s3().ls(BASE_PATH)] if st.button("Click to Refresh!"): del run_names run_names = [Path(file).stem for file in s3().ls(BASE_PATH)] return run_names
When I click the “Click to Refresh!” button, I still get the same list of files even though the directory has changed and when I run this gist in the terminal, it gives me the proper directory list.
Please help
