-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A storage root containing only a .DS_Store
file should be considered empty
#56
Comments
@mderuijter Can you give me more details about your situation? Are you using local storage or S3? Given that exception, my expectation of what's happening is that you're trying to initialize a repository in a directory that is both not empty and not an OCFL storage root. |
@pwinckles I'm using local storage and it's pointing to an empty directory.
Full stack trace:
|
@pwinckles also the code link I sent:
|
I just copy and pasted your example and it works fine. There must be files in |
okay, clearly i didn't understand that code properly
surely the .DS_Store file isn't causing it not to be empty? |
@pwinckles removing the .DS_Store file worked... we can close the issue i think. |
I'm going to leave this open, and will update the repo initialization code to consider a directory containing only a |
.DS_Store
file should be considered empty
For our project I have been trying to see if we can use this library to implement OCFL, and I ran into a small bug causing:
I think I traced the cause to DefaultOcflStorageInitializer.java#L92 which will always result to false
The text was updated successfully, but these errors were encountered: