I have a folder say Report under which i will have two more folder say 2019_01 and 2018_12 .
Now, in these two folders have some processed report files present.
So, Firstly i have to check if current month folder is there or not ( say month and year is coming from “20-01-2019” after some manipulation) then, check if files are there or not in the present month folder but if no files are there in current month folder then look for the previous month folder if present . And over here again i need to check if files are there in previous month folder or not…
I am stuck over this place … can someone please help me on this.