Directory.import_files() improvements

This branch includes the following improvements to Directory.import_files():

  • Rework the two import methods in CasBasedDirectory (import from filesystem and CAS-to-CAS import) to use the new filter callback instead of the file list, allowing proper recursive operation. For CAS-to-CAS import initial performance comparison has shown 3 times the performance. This change also makes the two import methods more similar in structure. Unification/deduplication could be considered in the future.
  • Support importing files from CasBasedDirectory into FileBasedDirectory.

This is a preparatory step for #920 (closed) and also for #440 (closed).

Edited by Jürg Billeter

Merge request reports

Loading