fix: try to fix #734

This commit is contained in:
Akash Yadav
2023-01-14 17:49:50 +05:30
parent 2edb2d15ee
commit ff20e65e57
@@ -105,7 +105,7 @@ public class BootstrapInstaller {
boolean isDirectory = entry.isDirectory();
final var dir = isDirectory ? targetFile : targetFile.getParentFile();
if (!FileUtils.createOrExistsDir(dir)) {
if (dir != null && !dir.exists() && !dir.mkdirs()) {
LOG.error("Cannot create target file parent directory");
throw new CompletionException(
new InstallationException("Unable to create directory: " + dir));