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

Cannot make_bag when user does not own directory #136

Open
gwiedeman opened this issue Jul 2, 2019 · 3 comments
Open

Cannot make_bag when user does not own directory #136

gwiedeman opened this issue Jul 2, 2019 · 3 comments

Comments

@gwiedeman
Copy link
Contributor

Bagit-python currently assumes that a user owns the directory it is creating a bag in. We have a use case where a user needs to create a bag on an external share that it does not own without having to sudo. Runnign chmod on the data directory causes this to fail: https://github.com/LibraryOfCongress/bagit-python/blob/master/bagit.py#L239

This is requiring me to make a bag in a tmp directory before copying it to its final location, which I don't think should be necessary, but I'm not sure if there's other reasons for this.

@acdha
Copy link
Member

acdha commented Jul 2, 2019

This sounds like it's related to #92 — the code originally was written assuming bag-in-place semantics but it would definitely be useful to have the ability to create a bag in a different location, especially with the possibility of using something like https://www.pyfilesystem.org/ where the source or destination is in a different location.

@nkrabben
Copy link
Contributor

nkrabben commented Jul 3, 2019

I'm also running into this. In my case, I'm bagging material off of DVD-R's.

I have some time to put into this. Would it be easier to work on #92 or make a new branch/PR?

@acdha
Copy link
Member

acdha commented Jul 3, 2019

I'd take a look at #92 but if it's a significant amount of work to rebase that against master a new branch might be cleaner.

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

3 participants