Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement bag completeness and validness #1

Closed
rvanheest opened this issue Jul 9, 2018 · 0 comments
Closed

Implement bag completeness and validness #1

rvanheest opened this issue Jul 9, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rvanheest
Copy link
Contributor

rvanheest commented Jul 9, 2018

According to BagIt spec 16 a bag is complete when:

  • Every required element is present (bagit.txt, data/, manifest-<alg>.txt)
  • Every file listed in every tag manifest is present
  • Every file listed in every payload manifest is present
  • (BagIt >= 1.0) every payload file is listed in every payload manifest
  • Every fetch file is present in the payload

A bag is valid when:

  • The bag is complete
  • Every checksum in every payload manifest and tag manifest has been successfully verified against the contents of the corresponding file.

Implement methods bag.isComplete and bag.isValid according to the statements above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant