public static void mkdirp(Path directory) {
        boolean result = directory.toFile().mkdirs();
        if (!result) {
            throw new IllegalStateException("Failed to create directory at: " + directory);
        }
    }
Make a directory, plus any required parent directories.

@param directory the directory path to make
core/src/main/java/org/testcontainers/utility/PathUtils.java