diff --git a/jrmcore/src/main/java/jrm/profile/scan/DirScan.java b/jrmcore/src/main/java/jrm/profile/scan/DirScan.java index ab430b4c..cc5a1bef 100644 --- a/jrmcore/src/main/java/jrm/profile/scan/DirScan.java +++ b/jrmcore/src/main/java/jrm/profile/scan/DirScan.java @@ -847,8 +847,11 @@ private void scanZip(Container c, ScanOptions options) throws IOException { for(final var hdr : zipf.getFileHeaders()) { - final var entry = c.add(new Entry(ZipTools.toEntry(hdr.getFileName()), ZipTools.toEntry(hdr.getFileName()))); - updateEntry(entry, zipf, hdr, options); + if(!hdr.isDirectory()) + { + final var entry = c.add(new Entry(ZipTools.toEntry(hdr.getFileName()), ZipTools.toEntry(hdr.getFileName()))); + updateEntry(entry, zipf, hdr, options); + } } c.setLoaded(options.needSha1OrMd5 ? 2 : 1);