mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-22 14:41:04 +01:00
Merge pull request #3661 from Pragadesh-45/main
fix: update condition for renaming items in Windows OS
This commit is contained in:
commit
3bf98aab3b
@ -350,7 +350,7 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection
|
|||||||
ipcMain.handle('renderer:rename-item', async (event, oldPath, newPath, newName) => {
|
ipcMain.handle('renderer:rename-item', async (event, oldPath, newPath, newName) => {
|
||||||
const tempDir = path.join(os.tmpdir(), `temp-folder-${Date.now()}`);
|
const tempDir = path.join(os.tmpdir(), `temp-folder-${Date.now()}`);
|
||||||
const parentDir = path.dirname(oldPath);
|
const parentDir = path.dirname(oldPath);
|
||||||
const isWindowsOSAndNotWSLAndItemHasSubDirectories = isWindowsOS() && !isWSLPath(oldPath) && hasSubDirectories(oldPath);
|
const isWindowsOSAndNotWSLAndItemHasSubDirectories = isDirectory(oldPath) && isWindowsOS() && !isWSLPath(oldPath) && hasSubDirectories(oldPath);
|
||||||
let parentDirUnwatched = false;
|
let parentDirUnwatched = false;
|
||||||
let parentDirRewatched = false;
|
let parentDirRewatched = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user