Fix filesystem api in OSX

This commit is contained in:
Ignasi Barrera 2015-11-24 15:35:47 +01:00
parent 86dadc3a75
commit 90423d7b9b
1 changed files with 3 additions and 1 deletions

View File

@ -803,7 +803,9 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
// don't delete directory if it's a directory blob
try {
UserDefinedFileAttributeView view = getUserDefinedFileAttributeView(directory.toPath());
if (!view.list().isEmpty()) {
if (view == null) { // OSX HFS+ does not support UserDefinedFileAttributeView
logger.debug("Could not look for attributes from %s", directory);
} else if (!view.list().isEmpty()) {
return;
}
} catch (IOException e) {