{"record":{"id":"359be14669faa05f","repo":"windmill-labs/windmill","slug":"could-not-find-metapath-does-the-folder-exist","errorCode":null,"errorMessage":"Could not find ${metaPath}. Does the folder exist locally?","messagePattern":"Could not find (.+?)\\. Does the folder exist locally\\?","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/folder/folder.ts","lineNumber":161,"sourceCode":"          ...localFolder,\n        },\n      });\n    } catch (e) {\n      //@ts-ignore\n      throw Error(`Failed to create folder ${name}: ${e.body ?? e.message}`);\n    }\n  }\n}\n\nasync function push(opts: GlobalOptions, name: string) {\n  const workspace = await resolveWorkspace(opts);\n  await requireLogin(opts);\n\n  const metaPath = `f${SEP}${name}${SEP}folder.meta.yaml`;\n  try {\n    await stat(metaPath);\n  } catch {\n    throw new Error(`Could not find ${metaPath}. Does the folder exist locally?`);\n  }\n\n  console.log(colors.bold.yellow(\"Pushing folder...\"));\n\n  await pushFolder(\n    workspace.workspaceId,\n    name,\n    undefined,\n    parseFromFile(metaPath)\n  );\n  console.log(colors.bold.underline.green(\"Folder pushed\"));\n}\n\nasync function addMissing(opts: GlobalOptions & { yes?: boolean }) {\n  const fDir = `f`;\n  try {\n    await stat(fDir);\n  } catch {","sourceCodeStart":143,"sourceCodeEnd":179,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/commands/folder/folder.ts#L143-L179","documentation":"Pre-flight check in the folder push command: stat() failed on f/{name}/folder.meta.yaml, so there is no local folder metadata to push. The push flow needs that file (it carries summary/extra perms for the folder); the input at fault is the folder name argument — no such local folder exists, or it was never created via newFolder/synced down so its meta file is missing.","triggerScenarios":"Thrown at cli/src/commands/folder/folder.ts:161 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the command from the workspace root where f/ lives (the path is relative to cwd)","Create the folder first: wmill folder new <name> (or wmill sync pull) to materialize folder.meta.yaml","Check the folder name spelling — it must match the directory under f/ exactly"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}