bagit-java
bagit-java copied to clipboard
hidden folder in data directory of bag failing validation check
Given
- I have a bag
- And I add a hidden folder in the data direcotry of this bag
When
- I run bag.isValid()
Then
- the visit method of class PayloadFileExistsInAtLeastOneManifestVistor throws exception saying that 'this hidden folder is in payload directory but not in any manifest directory'. This happens even after passing a parameter in isValid that says to ignore hidden files.
@chinuhub can you create a simple test that recreates the problem?