Fix container presence check in filesystem provider

This commit is contained in:
Ignasi Barrera 2017-02-01 17:42:28 +01:00
parent c2a75c318a
commit 4509cdecbb
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
@Override
public BlobAccess getBlobAccess(String containerName, String blobName) {
if (new File(buildPathStartingFromBaseDir(containerName)).exists()) {
if (!new File(buildPathStartingFromBaseDir(containerName)).exists()) {
throw new ContainerNotFoundException(containerName, "in getBlobAccess");
}
File file = new File(buildPathStartingFromBaseDir(containerName, blobName));