diff --git a/app/src/main/java/io/legado/app/help/FileHelp.kt b/app/src/main/java/io/legado/app/help/FileHelp.kt index a208a74a2..5a7678563 100644 --- a/app/src/main/java/io/legado/app/help/FileHelp.kt +++ b/app/src/main/java/io/legado/app/help/FileHelp.kt @@ -47,7 +47,7 @@ object FileHelp { if (file.isDirectory) { val files = file.listFiles() - for (subFile in files) { + files?.forEach { subFile -> val path = subFile.path deleteFile(path) }