Problem with bagit: error for dangling symlink
I want to create a bagit container of a folder. Some subfolder contains a dangling symlink, pointing to nirwana, that I hadn´t noticed so far. The script stops with the following error:
The following files do not have read permissions:
('/ptmp/sohlmann/mesh2cube_performance/octopus/doc/tutorials/octopus_basics/basic_input_options/inp',)
An error occurred creating a bag in /ptmp/sohlmann/mesh2cube_performance
Traceback (most recent call last):
File "/u/sohlmann/.local/lib/python3.9/site-packages/bagit.py", line 210, in make_bag
raise BagError(
bagit.BagError: Read permissions are required to calculate file fixities
Can't find folder or metadata file
Probably it should simply ignore such files? But I guess that this error originates from the bagit package and is none of your business. In this case, simply close the issue.