Skip to content

Commit

Permalink
Refactor fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelpasterz committed May 21, 2020
1 parent c8c007d commit ae5ba7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ae5ba7d

Please sign in to comment.