Sorting input files by file time
When your business logic relies on a certain order to read the input files, you configure scanning of the directory to report the identified files in a sorted sequence. For example, this sorting is needed in automated tests where current application results are automatically compared to expected results.
About this task
Enable sorting by file time in descending order by using parameters.
Procedure
- In the file <PathToYourApplication>/config/config.cfg, find the ite.ingest.directoryScan.sort parameter description
-
To enable sorting in descending order, select the descending value for the parameter as follows: ite.ingest.directoryScan.sort=descending
-
In the file <PathToYourApplication>/config/config.cfg, find the ite.ingest.directoryScan.sort.attribute parameter description
-
To enable sorting by file time, set the parameter as follows: ite.ingest.directoryScan.sort.attribute=time