in src/main/java/org/apache/sling/tooling/support/install/impl/InstallServlet.java [200:213]
public static void zipDir(final Path sourceDir, final ZipOutputStream zos, final String prefix) throws IOException {
try (Stream<Path> stream = Files.list(sourceDir)) {
stream.forEach(p ->
{
try {
zipFileOrDir(p, zos, prefix);
} catch (IOException e) {
throw new UncheckedIOException(e);
}
});
} catch (UncheckedIOException ioe) {
throw ioe.getCause();
}
}