I'd recommend to use a regular expression to check if the folder is a "date" folder. You shouldn't use exceptions to control the regular flow of your application. This is considered bad practice as it makes it harder to follow the actual logic and spot the code that is used for "exceptional" (hence the name...) cases.
This idea is further discussed here: Why not use exceptions as regular flow of control?