public static void ensureDirExists(final Path path) {
        try {
            Files.createDirectories(path);
        } catch (final IOException e) {
            LOGGER.error(() -> "Error creating directories for: " + FileUtil.getCanonicalPath(path), e);
            throw new UncheckedIOException(e);
        }
    }
Extract the number represented by the supplied `0` padded string.

@param string A directory name.
@return The long part of the string if found, else empty.
stroom-state/stroom-planb-impl/src/main/java/stroom/planb/impl/data/DirUtil.java