brenthuisman / par2deep

Produce, verify and repair par2 files recursively.
GNU Lesser General Public License v3.0
93 stars 8 forks source link

Questions about this project #20

Closed sudomain closed 2 years ago

sudomain commented 3 years ago

Hello,

I read the README and some of the existing issues and have some questions:

1.) This project doesn't use par2cmdline correct?

2.) How does it handle renaming of files? If a testfile is renamed to testfile2, but the file content doesn't change, then new recovery blocks aren't needed. Does par2deep account for this?

3.) What's the default behavior when a file is updated and par2deep is run again? Are the old par files overwritten by the new ones?

brenthuisman commented 3 years ago

Hi @sudomain,

Thanks for your interest!

  1. It does not require a build of par2cmdline, although it can be used with it. par2deep does use a copy of par2cmdline internally, see my libpar2 repo.
  2. It does not.
  3. par2 can only detect change, not whether or not those changes are intentional. If you run par2deep, you'll see you get the option of restoring the file (if enough parity data is available) or recreating the parity data.