Sorting input files by file name
When your business logic relies on a certain order to read the input files, you configure scanning of the scanning 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 name in ascending order by using parameters.
Procedure
- In the file <PathToYourApplication>/config/config.cfg, find the ite.ingest.directoryScan.sort parameter description
-
To enable sorting in ascending order, select the ascending value for the parameter as follows: ite.ingest.directoryScan.sort=ascending
-
In the file <PathToYourApplication>/config/config.cfg, find the ite.ingest.directoryScan.sort.attribute parameter description
-
To enable sorting by file name, set the parameter as follows: ite.ingest.directoryScan.sort.attribute=name