List<Path> getFiles(final Path parent) throws IOException {
        String glob = parent.getFileName().toString();
        int index = glob.lastIndexOf(".");
        if (index != -1) {
            glob = glob.substring(0, index);
        }
        glob = "glob:**" + File.separator + glob + ".*";

        final List<Path> result = new ArrayList<>();
        final PathMatcher matcher = FileSystems.getDefault().getPathMatcher(glob);
        Files.walkFileTree(parent.getParent(), new SimpleFileVisitor<>() {
            @Override
            public FileVisitResult visitFile(final Path file, final BasicFileAttributes attrs) {
                if (matcher.matches(file)) {
                    result.add(file);
                }
                return FileVisitResult.CONTINUE;
            }

            @Override
            public FileVisitResult visitFileFailed(final Path file, final IOException exc) {
                return FileVisitResult.CONTINUE;
            }
        });

        return result;
    }
Gets all files associated with a parent.
stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/FsPathHelper.java