Feature #3225

File I/O, sort sets of files by name alphabetically before processing sets of files

Added by Serge Heiden 4 months ago. Updated 4 months ago.

Status:New Start date:02/14/2022
Priority:Normal Due date:
Assignee:- % Done:

10%

Category:Import Spent time: -
Target version:TXM 0.8.2

Description

Currently set of files are processed in an unpredictable order.

This prevents the user to interpret some useful outputs.

For example:
  • Import modules: for every import step, for the display of processing progression by dots in the console of less than 100 files, it is not possible to know which file is being processed. This prevents some useful debugging actions.
  • XMLStatistics macro: the current (unpredictable) column order prevents the progressive join comparison of column results and actual source files.

Solution

Sort sets of files by name alphabetically before processing them.

add methods in org.txm.utils.FileUtils:
  • listFiles(File file) -> alphabetically sort files
  • listFiles(File file, String namePattern, boolean onlyFiles, boolean ignoreHiddenFiles) -> alphabetically sort files, filter by name if namePattern is set, can ignore hidden files and select only files (=ignore directories, links)

Associated revisions

History

#1 Updated by Matthieu Decorde 4 months ago

  • Target version changed from TXM 0.8.3 to TXM 0.8.2
  • % Done changed from 0 to 80

#2 Updated by Matthieu Decorde 4 months ago

  • % Done changed from 80 to 0

#3 Updated by Matthieu Decorde 4 months ago

  • Description updated (diff)
  • % Done changed from 0 to 10

TODO use the new methods

Also available in: Atom PDF