MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / directoryOf

Function directoryOf

graph-ui/src/pseudocode/imports-source.ts:195–198  ·  view source on GitHub ↗

Der Verzeichnisteil eines workspace-relativen Pfades, ohne Schluss-Schraegstrich.

(filePath: string)

Source from the content-addressed store, hash-verified

193
194/** Der Verzeichnisteil eines workspace-relativen Pfades, ohne Schluss-Schraegstrich. */
195function directoryOf(filePath: string): string {
196 const at = filePath.lastIndexOf('/');
197 return at < 0 ? '' : filePath.slice(0, at);
198}
199
200/** `a/b/../c` zu `a/c`. Rein textlich; es wird nichts am Dateisystem geprueft. */
201function normalizePath(path: string): string {

Callers 1

resolveImportTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected