Skip to content

Commit fe8e8f7

Browse files
committed
VendorPlugin.kt: another Windows path fix
1 parent 7e5fb6f commit fe8e8f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/main/java/com/google/firebase/gradle/plugins/VendorPlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ private fun zipFiles(zipOut: ZipOutputStream, sourceFile: File, parentDirPath: S
234234
val path = if (parentDirPath == "") {
235235
f.name
236236
} else {
237-
parentDirPath + File.separator + f.name
237+
parentDirPath.replace('\\', '/') + '/' + f.name
238238
}
239239
// Call recursively to add files within this directory
240240
zipFiles(zipOut, f, path)
241241
} else {
242242
FileInputStream(f).use { fi ->
243243
BufferedInputStream(fi).use { origin ->
244-
val path = parentDirPath + File.separator + f.name
244+
val path = parentDirPath.replace('\\', '/') + '/' + f.name
245245
val entry = ZipEntry(path)
246246
entry.time = f.lastModified()
247247
entry.isDirectory

0 commit comments

Comments
 (0)