I use loop to get file name of each file that is present in the folder.
Bot works good and is able to get correct file names, but sometimes it retrieves the file name with extension e.g.’ Downloads\FORECAST.020950.csv.csv' - for that I put if statement and extract name w/o extension if it is present
and sometimes it retrieves totally different name: ‘Downloads\886e099b-53f7-44c0-8383-0f7ed2b34472.csv' - but I am not sure how to handle this and bot fails if incorrect file name is being retrieved.
Can anyone help here, please?
Thanks a lot