xplat/js/react-native-github/packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tests/TaskTestUtils.kt (#53458)

Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53458

Reviewed By: rshest

Differential Revision: D80931289

fbshipit-source-id: 5da865e62ae5d4ef248d7e7f17357386f0b2b9b4
This commit is contained in:
generatedunixname537391475639613 authored and Facebook GitHub Bot committed 2025-08-26 05:23:42 -07:00
1 parent 4831314c1b
commit b7ac655a11
1 file changed
+2 -2
@@ -59,8 +59,8 @@ internal fun createZip(dest: File, paths: List<String>) {
val uri = URI.create("jar:file:$dest")
FileSystems.newFileSystem(uri, env).use { zipfs ->
paths.forEach {
val zipEntryPath = zipfs.getPath(it)
paths.forEach { path ->
val zipEntryPath = zipfs.getPath(path)
val zipEntryFolder = zipEntryPath.subpath(0, zipEntryPath.nameCount - 1)
Files.createDirectories(zipEntryFolder)
Files.createFile(zipEntryPath)