{"record":{"id":"981749494e6b7ff6","repo":"actualbudget/actual","slug":"the-destination-directory-does-not-exist","errorCode":null,"errorMessage":"The destination directory does not exist","messagePattern":"The destination directory does not exist","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/desktop-electron/index.ts","lineNumber":674,"sourceCode":"  }\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) {\n      logMessage(\n        'error',\n        `There was an error moving your directory:  ${String(error)}`,\n      );\n      throw error;\n    }\n\n    try {\n      await promiseRetry(\n        async retry => {","sourceCodeStart":656,"sourceCodeEnd":692,"githubUrl":"https://github.com/actualbudget/actual/blob/d4334cb6e6123f4d3bcea1ad6166608884c7e658/packages/desktop-electron/index.ts#L656-L692","documentation":"Error \"The destination directory does not exist\" thrown in actualbudget/actual.","triggerScenarios":"Thrown at packages/desktop-electron/index.ts:674 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"}