Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Joining files splitted via par2 may fail due to renaming #595
If download contains splitted files which must be joined via par-repair process the joining may fail if the splitted files themselves are renamed.
That’s an unfortunate combination of options ParRename (DirectRename) and ParScan.
The repair works if both ParRename and DirectRename are disabled OR if ParScan=Full.
Otherwise the par-rename (or direct-rename) renames first part to its correct file name. Then during par-repair all other files are not scanned (this is an optimisation to speed up post-processing) because the only file belonging to par2-set exists and was already scanned, no reason to scan any other files (unless ParScan=Full).
To fix this without loosing performance optimisation (avoid scanning of all files when ParScan != Full) such cases should be taken care of specifically.