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:
schroda
2025-11-09 01:38:08 +01:00
committed by GitHub
parent 00f5652db9
commit 436daeb87c

View File

@@ -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" }