Skip to content

Commit d3b2589

Browse files
authored
Merge pull request #47 from oracle/createcachedirifnull
create cache dir if it doesn't exists instead of throwing exception
2 parents 325a4d1 + c9d8c68 commit d3b2589

File tree

1 file changed

+1
-1
lines changed
  • imagetool/src/main/java/com/oracle/weblogic/imagetool/util

1 file changed

+1
-1
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/util/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ public static String getCacheDir() throws IOException {
587587
new LinkOption[]{LinkOption.NOFOLLOW_LINKS});
588588

589589
if (!pathExists) {
590-
throw new IOException("Cache Directory does not exists " + cacheDir);
590+
Files.createDirectory(path);
591591
} else {
592592
if (!Files.isDirectory(path)) {
593593
throw new IOException("Cache Directory specified is not a directory " + cacheDir);

0 commit comments

Comments
 (0)