Cannot use glob.glob('csv/**/*.csv') in Streamlit Cloud

The app currently runs in streamlit cloud and I am trying the access files in the github directory using glob.glob(‘csv//*.csv’) . However, it seems like I cannot use '’.

there it says I need to enable it by using the following command:

$ shopt -u globstar

Is there a way to do this?

Thanks a lot in advance!

Hi @Msdt, welcome to the Streamlit community!

In this case, I can’t think of a way to specify shell settings, but you have considered other similar alternatives since you’re already in Python? Pathlib also has a glob function, maybe it bundles the setting / behaves like you want?