mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Switched fs.renameSync to fs.copyFileSync
This commit is contained in:
@ -680,7 +680,8 @@ router.post('/rename', jsonParser, async function (request, response) {
|
||||
|
||||
// Rename chats folder
|
||||
if (fs.existsSync(oldChatsPath) && !fs.existsSync(newChatsPath)) {
|
||||
fs.renameSync(oldChatsPath, newChatsPath);
|
||||
fs.cpSync(oldChatsPath, newChatsPath);
|
||||
fs.rmSync(oldChatsPath, { recursive: true, force: true });
|
||||
}
|
||||
|
||||
// Remove the old character file
|
||||
|
Reference in New Issue
Block a user