FileNotFoundError: [Errno 2] No such file or directory. Yes, I'm using relative path

I have read a couple of the same topics on the forums and it boils down to relative path.

I’m deploying my app on streamlit cloud from my GitHub repository ( The error occurs when I’m trying to open all the .csv files in a folder (which is in the same directory as my that runs!).

The error:

FileNotFoundError: [Errno 2] No such file or directory: 'Data\\Payment'

So a selection of payment is being made which sets the path to the payment folder and calls for a function to open the files and create a dataframe:

if selection == 'Payment':
    path = r'Data\Payment'
    df = open_df(path)
def open_df(path):
    files = [f for f in listdir(path) if isfile(join(path, f)) and f.endswith('.csv')]
    dataframes = list()
    for file in files:
        df = pd.read_csv(join(path, file))

Everything works smoothly if I run the app localy (i.e. streamlit run