I am downloading data for certain dates from webpage in excel format, and have to process it further for formatting. Sometimes it’s available for chosen dates, sometimes its not and simply log out. How to make sure if the latest file of near time is downloaded or not.
There might be other files with similar name, just index difference, say file,file(1),file(2)… in the folder
How to proceed with this, using path exist?
For the shown image path exist returns true everytime as it’s fetching last 1 latest file from folder…