{"record":{"id":"25031fa61a34fda6","repo":"actualbudget/actual","slug":"the-from-and-to-directories-must-be-provided","errorCode":null,"errorMessage":"The from and to directories must be provided","messagePattern":"The from and to directories must be provided","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/desktop-electron/index.ts","lineNumber":664,"sourceCode":"\n  serverProcess.postMessage(msg.args);\n});\n\nipcMain.on('set-theme', (_event, theme: string) => {\n  const obj = { theme };\n  if (clientWin) {\n    void clientWin.webContents.executeJavaScript(\n      `window.__actionsForMenu && window.__actionsForMenu.saveGlobalPrefs({ prefs: ${JSON.stringify(obj)} })`,\n    );\n  }\n});\n\nipcMain.handle(\n  'move-budget-directory',\n  async (_event, currentBudgetDirectory: string, newDirectory: string) => {\n    try {\n      if (!currentBudgetDirectory || !newDirectory) {\n        throw new Error('The from and to directories must be provided');\n      }\n\n      if (newDirectory.startsWith(currentBudgetDirectory)) {\n        throw new Error(\n          'The destination must not be a subdirectory of the current directory',\n        );\n      }\n\n      if (!fs.existsSync(newDirectory)) {\n        throw new Error('The destination directory does not exist');\n      }\n\n      await cp(currentBudgetDirectory, newDirectory, {\n        force: true,\n        preserveTimestamps: true,\n        recursive: true,\n      });\n    } catch (error) {","sourceCodeStart":646,"sourceCodeEnd":682,"githubUrl":"https://github.com/actualbudget/actual/blob/d4334cb6e6123f4d3bcea1ad6166608884c7e658/packages/desktop-electron/index.ts#L646-L682","documentation":"Error \"The from and to directories must be provided\" thrown in actualbudget/actual.","triggerScenarios":"Thrown at packages/desktop-electron/index.ts:664 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d4334cb6e6123f4d3bcea1ad6166608884c7e658","analyzedAt":"2026-08-29T01:02:11.213Z","schemaVersion":2},"datasetVersion":"2026-08-29T02:17:18.158Z"}