|
|
|
@ -30,9 +30,9 @@ object LocalBook { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun deleteBook(book: Book, deleteOriginal: Boolean) { |
|
|
|
|
kotlin.runCatching { |
|
|
|
|
if (book.isTxt()) { |
|
|
|
|
val bookFile = |
|
|
|
|
FileUtils.getFile(AnalyzeTxtFile.cacheFolder, book.originName, subDirs = *arrayOf()) |
|
|
|
|
val bookFile = FileUtils.getFile(AnalyzeTxtFile.cacheFolder, book.originName) |
|
|
|
|
bookFile.delete() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -41,4 +41,5 @@ object LocalBook { |
|
|
|
|
DocumentFile.fromSingleUri(App.INSTANCE, uri)?.delete() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |