-
Notifications
You must be signed in to change notification settings - Fork 84
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
Add an option to not to move the payload into a subdirectory on bag create #67
base: master
Are you sure you want to change the base?
Conversation
ping The PR has been submitted two weeks ago without any reaction so far. Shall I submit an Issue for it to get noticed? |
Hi! I think that this is a really good idea and to me, your use case sounds valid. I've only used the command line option, but I've found that the tag-manifest.txt is not forming correctly. It seems to be identical to the manifest-md5.txt. I'm attaching two files, fakedata is the original directory, fakedata_bagged has been created by using |
Hi Kieran! Thank you for your comment! I can reproduce the problem that you describe. However, I'm not sure whether it is related with my PR. If I do the following:
I also get the very same result that you describe. Something weird happens here, I'll look into this. Maybe you discovered another bug, unrelated to this issue. |
@kieranjol, it turns out that the issue you discovered is indeed unrelated to this PR, see Bug #75. |
…le selection
When creating a new bag,
make_bag()
takes the bag directory as argument. It assumes the current content of this bag directory to be the payload. It creates a new subdirectorydata
and moves all content of the bag directory into this new subdirectory.Now, I have a use case, where I must access the payload read only when creating a new bag. I cannot move the payload. But I can arrange the payload to be already in the right place from the beginning. So I need an option to tell
make_bag()
: "Do not move the payload, it's already right there where it should be."This PR adds this option: it adds a new optional flag
move_payload
tomake_bag()
. If this flag isTrue
, the default,make_bag()
behaves exactly as before: it creates the payload directory and moves the current content of the bag dir into this subdirectory. If the flag isFalse
,make_bag()
assumes that the payload directory is already at its place and verifies that the bag dir does not contain anything else then this payload directory. The PR furthermore makes the new flag accessible by a new command line option tobagit.py
.