|
|
@ -30,9 +30,9 @@ object LocalBook { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun deleteBook(book: Book, deleteOriginal: Boolean) { |
|
|
|
fun deleteBook(book: Book, deleteOriginal: Boolean) { |
|
|
|
|
|
|
|
kotlin.runCatching { |
|
|
|
if (book.isTxt()) { |
|
|
|
if (book.isTxt()) { |
|
|
|
val bookFile = |
|
|
|
val bookFile = FileUtils.getFile(AnalyzeTxtFile.cacheFolder, book.originName) |
|
|
|
FileUtils.getFile(AnalyzeTxtFile.cacheFolder, book.originName, subDirs = *arrayOf()) |
|
|
|
|
|
|
|
bookFile.delete() |
|
|
|
bookFile.delete() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -42,3 +42,4 @@ object LocalBook { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |