MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / joinDirs

Function joinDirs

src/resolution/frameworks/terraform.ts:251–253  ·  view source on GitHub ↗

Join a base directory with a `./`/`../` relative source path.

(base: string, rel: string)

Source from the content-addressed store, hash-verified

249
250/** Join a base directory with a `./`/`../` relative source path. */
251function joinDirs(base: string, rel: string): string {
252 return path.join(base === '.' ? '' : base, rel);
253}
254
255/** Normalize to the stored path shape: forward slashes, '.' for the root. */
256function normalizeRel(p: string): string {

Callers 1

resolveScopedModuleRefFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected