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

Function dirOf

src/resolution/cpp-includers.ts:62–62  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

60 return dot > 0 ? name.slice(0, dot) : name;
61};
62const dirOf = (filePath: string): string => filePath.slice(0, filePath.lastIndexOf('/') + 1);
63
64const toInclude = (n: Pick<Node, 'id' | 'name' | 'filePath' | 'language' | 'startLine' | 'startColumn'>): Include =>
65 ({ id: n.id, spec: n.name, file: n.filePath, language: n.language, line: n.startLine, column: n.startColumn });

Callers 2

cfmlComponentByNameMethod · 0.70
cppIncludedHeadersBesideFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected