mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 14:52:05 +01:00
Overwrite existing served webui files on copy (#1771)
There is a possibility that the serve folder was only partially deleted. This then could cause "FileAlreadyExistsException" when copying the webui files to the serve folder.
This commit is contained in:
@@ -224,7 +224,7 @@ object WebInterfaceManager {
|
||||
File(tempWebUIRoot).deleteRecursively()
|
||||
File(tempWebUIRoot).mkdirs()
|
||||
|
||||
File(originalWebUIRoot).copyRecursively(File(tempWebUIRoot))
|
||||
File(originalWebUIRoot).copyRecursively(File(tempWebUIRoot), overwrite = true)
|
||||
|
||||
logger.debug { "Created servable WebUI directory at: $tempWebUIRoot" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user