pull/83/head
kunfei 5 years ago
parent 1fff1bcb46
commit 711dff3218
  1. 5
      app/src/main/java/io/legado/app/utils/FileUtils.kt

@ -59,11 +59,6 @@ object FileUtils {
return File(filePath)
}
fun getFile(root: File, vararg subDirs: String): File {
val filePath = getPath(root, subDirs = *subDirs)
return File(filePath)
}
fun getPath(root: File, fileName: String? = null, vararg subDirs: String): String {
return if (fileName.isNullOrEmpty()) {
root.absolutePath + File.separator + subDirs.joinToString(File.separator)

Loading…
Cancel
Save