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();