Closed nkrabben closed 1 year ago
I've incorporated the suggested changes.
After using this branch for a few months, I changed the copy mechanism to use a single copytree call. To do this, I had to create the temporary directory name from scratch since copytree will not copy to pre-existing directories. I couldn't think of a way to cover L245-248 with a test.
@acdha is it okay if I add tests to cover the CLI? It would have caught the bug I fixed in 61769cd, but I hadn't seen an approach to testing in the package yet.
Based on @runderwood #92, but reimplemented within the current codebase to address #32 and #136
Major difference, this places every source within its own bag rather than combining bag, e.g.
bagit.py --destination foo/ --directory bar/ baz/
will createwhich mirrors current behavior that bagit.py --directory bar/ baz/ creates