MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / expandHome

Function expandHome

packages/node-runtime/src/node-path-provider.ts:157–162  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

155}
156
157function expandHome(filePath: string): string {
158 if (filePath.startsWith('~/') || filePath === '~') {
159 return path.join(os.homedir(), filePath.slice(1))
160 }
161 return filePath
162}

Callers 1

resolveUserDataDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected