MCPcopy Index your code
hub / github.com/anomalyco/opencode / isSafeOutputPath

Function isSafeOutputPath

packages/httpapi-codegen/src/index.ts:767–769  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

765}
766
767function isSafeOutputPath(path: string) {
768 return path !== manifestName && !isAbsolute(path) && path !== "." && path !== ".." && !/[\\/]/.test(path)
769}
770
771export function generate<Id extends string, Groups extends HttpApiGroup.Any>(
772 api: HttpApi.HttpApi<Id, Groups>,

Callers 1

writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected