diff --git a/app/src/main/java/io/legado/app/utils/FileUtils.kt b/app/src/main/java/io/legado/app/utils/FileUtils.kt index 2e07e1839..d82f6bca0 100644 --- a/app/src/main/java/io/legado/app/utils/FileUtils.kt +++ b/app/src/main/java/io/legado/app/utils/FileUtils.kt @@ -18,7 +18,7 @@ object FileUtils { } fun createFolderIfNotExist(root: File, vararg subDirs: String): File { - val filePath = root.absolutePath + File.separator + subDirs.joinToString(File.separator) + val filePath = getPath(root, subDirs = *subDirs) return createFolderIfNotExist(filePath) }