public static String resolvePathToAbsolute()

in src/main/java/com/epam/grid/engine/provider/utils/DirectoryPathUtils.java [52:65]


    public static String resolvePathToAbsolute(final String root, final String path) {
        Path processingPath = Path.of(path);
        if (processingPath.isAbsolute()) {
            if (!path.startsWith(root)) {
                throw new IllegalStateException("Nested folder path is absolute, but doesn't start with "
                        + "grid.engine.shared.folder");
            }
        } else {
            processingPath = Paths.get(root, path);
            log.info("Nested folder path was changed to " + processingPath);
        }
        checkIfFolderNotExistsAndCreate(processingPath);
        return processingPath.toString();
    }