Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Implement bag completeness and validness #1

@rvanheest

Description

@rvanheest

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions