Skip to content

Can not add directory as source to bag #53

@privatezero

Description

@privatezero

Currently it seems that only individual file inputs can be added to bags and this library fails when attempting to add a directory (which can be desirable to maintain original structure of archival data).

Unless I am mistaken, this could be resolved by tweaking FileUtils.cp to be FileUtils.cp_r at line 85 and FileUtils.rm to FileUtils.rm_r at line 95

Alternately, I suppose new add_directory and remove_directory methods could be added incorporating those changes.

Happy to make a PR for this if any of those changes seems reasonable!

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