mirror of
https://github.com/apache/jclouds.git
synced 2025-02-11 20:46:11 +00:00
check file exists in getContainerAccess (#185)
This commit is contained in:
parent
611b4c4a11
commit
eb1181daf5
@ -187,7 +187,11 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ContainerAccess getContainerAccess(String container) {
|
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() ) {
|
if ( isWindows() ) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user