diff --git a/packages/bruno-electron/src/ipc/collection.js b/packages/bruno-electron/src/ipc/collection.js index b195d3582..323541dcc 100644 --- a/packages/bruno-electron/src/ipc/collection.js +++ b/packages/bruno-electron/src/ipc/collection.js @@ -1172,7 +1172,7 @@ const registerRendererEventHandlers = (mainWindow, watcher) => { if (item.type === 'folder') { let sanitizedFolderName = sanitizeName(item?.filename || item?.name); const folderPath = path.join(currentPath, sanitizedFolderName); - fs.mkdirSync(folderPath); + fs.mkdirSync(folderPath, { recursive: true }); if (item?.root?.meta?.name) { const folderFilePath = path.join(folderPath, `folder.${format}`);