mirror of
https://github.com/apache/jclouds.git
synced 2025-02-07 02:29:25 +00:00
Correct precondition
Follow on to 1ae735bb7d8fa4d512e744f79582477efdfd7f26.
This commit is contained in:
parent
e59ccbff81
commit
d8ab673da9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user