You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2018/11/14 22:53:36 UTC

jclouds git commit: Correct precondition

Repository: jclouds
Updated Branches:
  refs/heads/master 1ae735bb7 -> b7d59e3fe


Correct precondition

Follow on to 1ae735bb7d8fa4d512e744f79582477efdfd7f26.


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/b7d59e3f
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/b7d59e3f
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/b7d59e3f

Branch: refs/heads/master
Commit: b7d59e3fe97be99a3b4c610dd1a23087d6b18208
Parents: 1ae735b
Author: Andrew Gaul <ga...@apache.org>
Authored: Wed Nov 14 14:53:05 2018 -0800
Committer: Andrew Gaul <ga...@apache.org>
Committed: Wed Nov 14 14:53:05 2018 -0800

----------------------------------------------------------------------
 .../strategy/internal/FilesystemStorageStrategyImpl.java           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/b7d59e3f/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
----------------------------------------------------------------------
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 211cb42..f9491b2 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
@@ -254,7 +254,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();