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

Feature Request: Create Multiple Bags in Place at once #73

Open
BWDouglas opened this issue Apr 26, 2024 · 1 comment
Open

Feature Request: Create Multiple Bags in Place at once #73

BWDouglas opened this issue Apr 26, 2024 · 1 comment

Comments

@BWDouglas
Copy link

Hello! I am currently working on a project with hundreds of folders that need to be bagged individually. With the current workflow, this will take a very long time. Would it be possible to add a function to select a master folder and have it bag all subfolders individually? Or do you have any suggestion for how to automate this process?

OS: Mac OS 14.4

@jscancella
Copy link
Contributor

If you are looking to automate, you probably should use https://github.com/LibraryOfCongress/bagit-python
The bottleneck making a bag faster will be how long it takes to read the files off disk.

But something like this should do it, in your terminal:

cd <master folder>
for f in `ls`; do bagit.py --sha256 <master folder>/$f; done

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

No branches or pull requests

2 participants