check file exists in getContainerAccess (#185)

This commit is contained in:
jixinchi 2023-10-13 00:18:30 +08:00 committed by GitHub
parent 611b4c4a11
commit eb1181daf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -187,7 +187,11 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
@Override
public ContainerAccess getContainerAccess(String container) {
Path path = new File(buildPathStartingFromBaseDir(container)).toPath();
File file = new File(buildPathStartingFromBaseDir(container));
if (!file.exists()) {
throw new ContainerNotFoundException(container, "in getContainerAccess");
}
Path path = file.toPath();
if ( isWindows() ) {
try {