void (final Path dir, final Consumer<Path> children) { if (Files.isRegularFile(dir, NOFOLLOW_LINKS)) return; try (DirectoryStream<Path> paths = Files.newDirectoryStream(dir)) { paths.forEach(children); } catch (IOException ignore) { } }