Sorting input files by file size
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 size in custom 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 custom value for the parameter as follows: ite.ingest.directoryScan.sort=custom
-
In the file <PathToYourApplication>/config/config.cfg, find the ite.ingest.directoryScan.sort.attribute parameter description
-
To enable sorting by file size, set the parameter as follows: ite.ingest.directoryScan.sort.attribute=size
Refer to the customization information that describes how to implement a customized sorting operator.