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

Function dirOf

src/resolution/frameworks/terraform.ts:238–241  ·  view source on GitHub ↗

Directory of a stored (forward-slash, project-relative) path.

(p: string)

Source from the content-addressed store, hash-verified

236
237/** Directory of a stored (forward-slash, project-relative) path. */
238function dirOf(p: string): string {
239 const d = path.dirname(p);
240 return d === '' ? '.' : d;
241}
242
243/** Parent directory, or null above the project root. */
244function parentOf(dir: string): string | null {

Callers 3

resolveFunction · 0.70
nearestAncestorMatchFunction · 0.70
resolveScopedModuleRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected