MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / toRelativePath

Method toRelativePath

src/utils/usage-tracker.ts:82–86  ·  view source on GitHub ↗
(fullPath: string)

Source from the content-addressed store, hash-verified

80 }
81
82 private toRelativePath(fullPath: string): string {
83 // Take last 4 path segments for readability
84 const parts = fullPath.replace(/\\/g, '/').split('/');
85 return parts.slice(-4).join('/');
86 }
87
88 /**
89 * Find all files that import a given source

Callers 2

trackImportMethod · 0.95
trackExportMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected