Skip to content

Commit

Permalink
Correctly copy chapter download to final download location
Browse files Browse the repository at this point in the history
"renameTo" does not include the content of a directory.
Thus, it just created an empty chapter folder int the final download directory
  • Loading branch information
schroda committed Sep 2, 2023
1 parent a254246 commit 93e3e6a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ class FolderProvider(mangaId: Int, chapterId: Int) : ChaptersFilesProvider(manga
return false
}

folder.mkdirs()
val cacheChapterDir = getChapterCachePath(mangaId, chapterId)
File(cacheChapterDir).renameTo(folder)
File(cacheChapterDir).copyRecursively(folder, true)

return true
}
Expand Down

0 comments on commit 93e3e6a

Please sign in to comment.