This post is also available in: Deutsch

What at first sounds complicated and not very useful, can be found in reality from time to time. Recently the automated export of source data from another program in CSV format confronted me with this task.

Daily folder for automated export

Unfortunately, when exporting from the source system – apart from the target directory – very little could be adjusted. The result is that the automated export job daily creates a new folder with the current date, similar to the following example:

In this example it is only necessary to load the files from the newest folder, because this folder contains the entire data. However, the file names also change with