mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-02 10:14:57 +07:00
[rdct] IDEA-342162 fixing broken logs structure (extra folder removed)
GitOrigin-RevId: ae2c4f8ba7d7894fca9d3ce79bfc1841a239cc57
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5583548ca6
commit
06f55eb8cd
@@ -11,7 +11,10 @@ import kotlin.io.path.*
|
||||
fun ZipOutputStream.addFolder(entryName: String, folder: Path) {
|
||||
for (path in folder.walk()) {
|
||||
val relativized = folder.relativize(path)
|
||||
addEntry(entryName + "/" + relativized.joinToString(separator = "/") { it.name }) {
|
||||
val prefix = if (entryName.isNotEmpty()) {
|
||||
"$entryName/"
|
||||
} else ""
|
||||
addEntry(prefix + relativized.joinToString(separator = "/") { it.name }) {
|
||||
path.inputStream().use {
|
||||
it.copyTo(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user