Correct precondition

Follow on to 1ae735bb7d.
This commit is contained in:
Andrew Gaul 2018-11-14 14:53:05 -08:00
parent e59ccbff81
commit d8ab673da9
1 changed files with 1 additions and 1 deletions

View File

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