in src/main/java/com/epam/grid/engine/provider/utils/DirectoryPathUtils.java [67:81]
private static void checkIfFolderNotExistsAndCreate(final Path folderToCreate) {
if (!Files.exists(folderToCreate)) {
if (folderToCreate.toFile().mkdirs()) {
log.info("Directory with path " + folderToCreate + " was created.");
try {
grantAllPermissionsToFolder(folderToCreate);
} catch (final IOException ioException) {
throw new IllegalArgumentException("Failed to grant permissions to the path " + folderToCreate,
ioException);
}
} else {
throw new IllegalArgumentException("Failed to create directory with path " + folderToCreate);
}
}
}