From ae5ba7df72fcc8f17c288ae78497c0d4fcbabb25 Mon Sep 17 00:00:00 2001 From: Pawel Pasterz Date: Thu, 21 May 2020 12:54:06 +0200 Subject: [PATCH] Refactor fetching --- test_runner/src/main/kotlin/ftl/run/common/FetchArtifacts.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_runner/src/main/kotlin/ftl/run/common/FetchArtifacts.kt b/test_runner/src/main/kotlin/ftl/run/common/FetchArtifacts.kt index f9dc80e3f8..5e93f0ae7f 100644 --- a/test_runner/src/main/kotlin/ftl/run/common/FetchArtifacts.kt +++ b/test_runner/src/main/kotlin/ftl/run/common/FetchArtifacts.kt @@ -67,7 +67,7 @@ internal fun getDownloadPath(args: IArgs, blobPath: String): Path { // for iOS it is shardName, remove this comment after FTL introduce server side sharding for iOS val matrixName = parsed.getName(1).toString() val deviceName = parsed.getName(2).toString() - val filePathName = if (parsed.nameCount > 4 && args.keepFilePath) parsed.parent.drop(3).joinToString("/") else "" + val filePathName = if (args.keepFilePath) parsed.parent.drop(3).joinToString("/") else "" val fileName = parsed.fileName.toString() return Paths.get("$localDir/$objName/$matrixName/$deviceName/$filePathName/$fileName")