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!
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.cpto beFileUtils.cp_rat line 85 andFileUtils.rmtoFileUtils.rm_rat line 95Alternately, I suppose new
add_directoryandremove_directorymethods could be added incorporating those changes.Happy to make a PR for this if any of those changes seems reasonable!