bagger icon indicating copy to clipboard operation
bagger copied to clipboard

Feature Request: Create Multiple Bags in Place at once

Open BWDouglas opened this issue 1 year ago • 1 comments

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

BWDouglas avatar Apr 26 '24 18:04 BWDouglas

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

jscancella avatar Apr 26 '24 18:04 jscancella