Skip to content

Cannot make_bag when user does not own directory #136

Description

@gwiedeman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions