From d8ab673da9380bab90f4794d54ea89ae094d8e7b Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Wed, 14 Nov 2018 14:53:05 -0800 Subject: [PATCH] Correct precondition Follow on to 1ae735bb7d8fa4d512e744f79582477efdfd7f26. --- .../strategy/internal/FilesystemStorageStrategyImpl.java | 2 +- 1 file changed, 1 insertion(+), 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 b51124bc9b..0442c71383 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 @@ -250,7 +250,7 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy { public void clearContainer(String container, ListContainerOptions options) { filesystemContainerNameValidator.validate(container); // TODO: these require calling removeDirectoriesTreeOfBlobKey - checkArgument(options.getDir() == null || options.getPrefix() == null, "cannot specify directory or prefix"); + checkArgument(options.getDir() == null && options.getPrefix() == null, "cannot specify directory or prefix"); try { File containerFile = openFolder(container); File[] children = containerFile.listFiles();