public static List<Path> listChildPaths(final Path parent,
                                            final Predicate<Path> pathPredicate) {
        if (parent == null) {
            return Collections.emptyList();
        } else {
            try {
                try (Stream<Path> pathStream = Files.list(parent)) {
                    if (pathPredicate != null) {
                        return pathStream.filter(pathPredicate)
                                .toList();
                    } else {
                        return pathStream.toList();
                    }
                }
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    }
List the direct child paths in parent that match pathPredicate.
stroom-util/src/main/java/stroom/util/io/FileUtil.java