reconstructPar fails if directory contains filenames with spaces.
Summary
reconstructPar fails if directory contains filenames with spaces.
Steps to reproduce
in a decomposed run, create a file with a space, for example "log.interDyMFoam_first part", then try to run reconstructPar -time ... to reconstruct one of the decomposed time folders.
Rename the file to "log.interDyMFoam_first_part", and then reconstructPar runs as expected.
Environment information
- OpenFOAM version : v18912
- Operating system : ubuntu
- Compiler : gcc
Possible fixes
I reported a similar bug for paraFoam a few years ago. The issue was that the the software process the directory list, possibly to aggregate numbers files, and gets stuck on filenames with spaces (and also other special characters?) Possibly reconstructPar has the same issue.