mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-27 17:49:16 +03:00
Null check for local source cover parent dir
This commit is contained in:
parent
830a834ea6
commit
573f3a392a
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class LocalSource(private val context: Context) : CatalogueSource {
|
|||
val cover = File("${dir.absolutePath}/${manga.url}", COVER_NAME)
|
||||
|
||||
// It might not exist if using the external SD card
|
||||
cover.parentFile.mkdirs()
|
||||
cover.parentFile?.mkdirs()
|
||||
input.use {
|
||||
cover.outputStream().use {
|
||||
input.copyTo(it)
|
||||
|
|
Loading…
Reference in a new issue