Budibase/budibase · error
Path cannot be created: ${err.message}
Error message
Path cannot be created: ${err.message} What it means
Error "Path cannot be created: ${err.message}" thrown in Budibase/budibase.
Source
Thrown at packages/server/src/utilities/fileSystem/filesystem.ts:107
relativePath === ".." ||
relativePath.startsWith(`..${sep}`) ||
isAbsolute(relativePath)
) {
throw new Error("Path must be within the Budibase temp directory.")
}
return resolvedPath
}
export const createTempFolder = (item: string) => {
const path = fs.mkdtempSync(
join(budibaseTempDir(), `${sanitizeTempFolderPrefix(item)}-`)
)
try {
return assertWithinTempDir(path)
} catch (err: any) {
fs.rmSync(path, { recursive: true, force: true })
throw new Error(`Path cannot be created: ${err.message}`)
}
}
export const extractTarball = async (fromFilePath: string, toPath: string) => {
const safePath = assertWithinTempDir(toPath)
await tar.extract({
file: fromFilePath,
C: safePath,
})
}
/**
* Find for a file recursively from start path applying filter, return first match
*/
export const findFileRec = (
startPath: PathLike,
filter: string
): string | undefined => {View on GitHub (pinned to a81a902e9a)
When it happens
Trigger: Thrown at packages/server/src/utilities/fileSystem/filesystem.ts:107 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Budibase/budibase@a81a902e9a (2026-08-29).
Data as JSON: /api/errors/f59371b2b2aa7690.
Report an issue: GitHub.