mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-22 23:02:40 +01:00
fix: add renameSync
This commit is contained in:
parent
4283bb4bb0
commit
99f912312d
@ -372,7 +372,7 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection
|
|||||||
await fsExtra.move(tempDir, newPath, { overwrite: true });
|
await fsExtra.move(tempDir, newPath, { overwrite: true });
|
||||||
await fsExtra.remove(oldPath);
|
await fsExtra.remove(oldPath);
|
||||||
} else {
|
} else {
|
||||||
await fs.rename(oldPath, newPath);
|
await fs.renameSync(oldPath, newPath);
|
||||||
}
|
}
|
||||||
return newPath;
|
return newPath;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user