fix: add renameSync

This commit is contained in:
Pragadesh-45 2024-12-05 17:27:24 +05:30
parent 4283bb4bb0
commit 99f912312d

View File

@ -372,7 +372,7 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection
await fsExtra.move(tempDir, newPath, { overwrite: true });
await fsExtra.remove(oldPath);
} else {
await fs.rename(oldPath, newPath);
await fs.renameSync(oldPath, newPath);
}
return newPath;
}