in src/main/java/org/apache/netbeans/nbpackage/FileUtils.java [122:131]
public static void extractArchive(Path archive, Path destination) throws IOException {
if (!Files.isDirectory(destination)) {
throw new IOException(destination.toString());
}
try {
ArchiveUtils.extractArchive(archive, destination);
} catch (CompressorException | ArchiveException ex) {
throw new IOException(ex);
}
}