From 90423d7b9b6ef4c7880a1fbf180eb610f4313c7c Mon Sep 17 00:00:00 2001 From: Ignasi Barrera Date: Tue, 24 Nov 2015 15:35:47 +0100 Subject: [PATCH] Fix filesystem api in OSX --- .../strategy/internal/FilesystemStorageStrategyImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java b/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java index 02c176ab65..893d944ef7 100644 --- a/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java +++ b/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java @@ -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) {