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

New Packager Class #367

Open
ianthe opened this issue Apr 20, 2017 · 0 comments
Open

New Packager Class #367

ianthe opened this issue Apr 20, 2017 · 0 comments
Labels

Comments

@ianthe
Copy link
Member

ianthe commented Apr 20, 2017

UoE Requirement Dep 12

First thing, read this - https://en.wikipedia.org/wiki/BagIt

The current Bagit Java library has a number of problems. It might be possible to download the code and edit it, but honestly I think it would be much easier to start from scratch as the existing code is extremely complicated.

The problems we need to fix are...

  • The current code builds the manifest in memory, so for a directory with a lot of files it runs out of memory.

  • maintain empty directories

  • maintain symbolic links (rather than resolving & duplicating)

  • maintain exact file names

    • Will need a way of handling the fact that there aren't checksums for empty directories and symbolic links

Packager interface so can choose which to use

  • methods in Deposit:
    • Packager.createBag(bagDir);
    • Packager.addMetadata(bagDir, depositMetadata, vaultMetadata, fileTypeMetadata, externalMetadata);
    • Packager.extractMetadata(bagDir, metaDir);
@ianthe ianthe self-assigned this Apr 20, 2017
@ianthe ianthe assigned ghost and unassigned ianthe Aug 24, 2017
@seesmith seesmith added the bug label Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants