MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / isSameOrChildPath

Function isSameOrChildPath

packages/cli/src/commands/batchRender.ts:153–155  ·  view source on GitHub ↗
(path: string, parent: string)

Source from the content-addressed store, hash-verified

151}
152
153function isSameOrChildPath(path: string, parent: string): boolean {
154 return path === parent || path.startsWith(parent.endsWith(sep) ? parent : parent + sep);
155}
156
157export function commonOutputDirectory(outputPaths: readonly string[]): string {
158 const firstPath = outputPaths[0];

Callers 1

commonOutputDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected