From ee6aff8fe7aa8e68ac6b32d1acc94499b1db7e0e Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Tue, 21 Jun 2022 19:47:03 +0200 Subject: [PATCH] chore: add comment --- .../kotlin/app/revanced/utils/filesystem/ZipFileSystemUtils.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/app/revanced/utils/filesystem/ZipFileSystemUtils.kt b/src/main/kotlin/app/revanced/utils/filesystem/ZipFileSystemUtils.kt index 95cafc5..b2206a3 100644 --- a/src/main/kotlin/app/revanced/utils/filesystem/ZipFileSystemUtils.kt +++ b/src/main/kotlin/app/revanced/utils/filesystem/ZipFileSystemUtils.kt @@ -37,6 +37,8 @@ internal class ZipFileSystemUtils( }.close() Files.walk(path).let { fileStream -> + // don't include build directory + // by skipping the root node. fileStream.skip(1).forEach { filePath -> val relativePath = filePath.getRelativePath(path)