Hi @Anonymous
Below is the pseudo logic.
- format today's date in a variable in the required format you need ie; ddmmyy
- When you loop through the files you can do a wild card check to look for a file that has a pattern as
XXXXX_<your_above_date_variable>_hhmmss.xlsx
Without taking a look I am thinking the wild card to be used is
*_<your_above_date_variable>*.xlsx
The first * would mean anything before the date and the second * would mean anything after the date, and then we have given the extension.
The angular brackets < and > are not to be used. I am just using it for explanation purpose as a placeholder.
- If found go ahead and rename it.
This is in a windows file folder not on a FTP but just to give you an example
If the files in folder is as below

Then wild card results into just that one file

If you do not have an option to do a wild card search in the FTP code you are doing then read every file name one by one and check whether it matches this pattern.

After running the Display message showed that the matching date was found at position 5 (starts at 0).
abcd_081021_012345.xlsx

If the value returned is less than 0 then it is not found and go to the next file.