LibraryOfCongress / bagit-python

Work with BagIt packages from Python.
http://libraryofcongress.github.io/bagit-python
213 stars 85 forks source link

Query re --validate output #137

Open PagesNavigator opened 5 years ago

PagesNavigator commented 5 years ago

I am new to using Bagit and would appreciate some advice on using --validate function.

From reading other threads, I can see that there is a WARNING issued if a file is missing or corrupt in \data subfolder. I only get this output, which is the same as for --validate --fast. F:>bagit.py --validate Samples 2019-07-03 17:57:37,366 - ERROR - Samples is invalid: Payload-Oxum validation failed. Expected 10 files and 50586020 bytes but found 10 files and 50586017 bytes How can I get an output which will identify the corrupt file or the missing file? Thank you very much for your help in advance!

finoradin commented 4 months ago

Chiming in to say I am seeing the same behavior. Validation seems to be returning only the first error no matter if running in the command line or using programmatically. In other words validation acts as though --fast is always invoked. Sort of a major issue… unless usage has changed and the documentation is not up to date?