mirror of
https://github.com/Anvilcraft/modpacktools
synced 2024-12-28 07:33:39 +01:00
fix Path.toZip missing directory entries
This commit is contained in:
parent
3fbd93a519
commit
ea16f1cb41
2 changed files with 6 additions and 0 deletions
0
gradlew
vendored
Normal file → Executable file
0
gradlew
vendored
Normal file → Executable file
|
@ -128,6 +128,12 @@ fun Path.toZip(zStream: ZipOutputStream) {
|
||||||
zStream.closeEntry()
|
zStream.closeEntry()
|
||||||
return FileVisitResult.CONTINUE
|
return FileVisitResult.CONTINUE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun preVisitDirectory(dir: Path, attrs: BasicFileAttributes?): FileVisitResult {
|
||||||
|
zStream.putNextEntry(ZipEntry(this@toZip.relativize(dir).toString()))
|
||||||
|
zStream.closeEntry()
|
||||||
|
return FileVisitResult.CONTINUE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue