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

Function expandTilde

src/server/config.ts:19–24  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

17}
18
19function expandTilde(filePath: string): string {
20 if (filePath === '~' || filePath.startsWith('~/') || filePath.startsWith('~\\')) {
21 return path.join(os.homedir(), filePath.slice(1));
22 }
23 return filePath;
24}
25
26function parseStringArray(value: unknown): string[] | undefined {
27 if (!Array.isArray(value)) {

Callers 1

loadServerConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected