mirror of https://github.com/apache/jclouds.git
Fix filesystem api in OSX
This commit is contained in:
parent
86dadc3a75
commit
90423d7b9b
|
@ -803,7 +803,9 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
|
||||||
// don't delete directory if it's a directory blob
|
// don't delete directory if it's a directory blob
|
||||||
try {
|
try {
|
||||||
UserDefinedFileAttributeView view = getUserDefinedFileAttributeView(directory.toPath());
|
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;
|
return;
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in New Issue