pull/279/head
gedoor 4 years ago
parent 9b5c5f2a0d
commit 25cbfcee91
  1. 6
      app/src/main/java/io/legado/app/utils/FileUtils.kt

@ -60,12 +60,12 @@ object FileUtils {
}
fun getPath(root: File, fileName: String? = null, vararg subDirs: String): String {
val path = StringBuilder(root.absolutePath).append(File.separator)
val path = StringBuilder(root.absolutePath)
subDirs.forEach {
path.append(it).append(File.separator)
path.append(File.separator).append(it)
}
if (!fileName.isNullOrEmpty()) {
path.append(fileName)
path.append(File.separator).append(fileName)
}
return path.toString()
}

Loading…
Cancel
Save