You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because bagit-python removes blank characters at the end of each manifest line, the in-memory representation of a filename like "path_with_space_at_the_end.txt " is "path_with_space_at_the_end.txt" which causes a completeness fail.
I think the likely reason is that L699 is being used to remove the new line characters, but is overly aggressive. I can write a test for this but want some feedback about potential solutions before trying to code that up.
The text was updated successfully, but these errors were encountered:
This isn't a block or anything, but trailing spaces in filenames can
produce terrible issues on windows (maybe ntfs in general?). Windows
prevents you from doing it, but I've seen drives where the space was
created in another operating system and the folder/file often not only
doesn't appear to a user, the space on the disk is designated free space
ready for overwriting.
See cause 6 here:
https://support.microsoft.com/en-ie/help/320081/you-cannot-delete-a-file-or-a-folder-on-an-ntfs-file-system-volume
Because bagit-python removes blank characters at the end of each manifest line, the in-memory representation of a filename like "path_with_space_at_the_end.txt " is "path_with_space_at_the_end.txt" which causes a completeness fail.
bagit-python/bagit.py
Line 669 in 4b76c14
I think the likely reason is that L699 is being used to remove the new line characters, but is overly aggressive. I can write a test for this but want some feedback about potential solutions before trying to code that up.
The text was updated successfully, but these errors were encountered: