I have a job that process all the csv files in a folder and move them to another location.
I've scheduled (@Scheduled) this Job to execute over a time interval and i noticed that the file list it's not updated.
Here is the configuration used to map all the files in the folder:
@Value("file:${app.hotfolder_path}${app.filename_regex}")
private Resource[] inputResources;
I need to update this property on every job execution because the file list change over time (Once a day). Is there an easy way to achieve this? Thank you in advance.