MCPcopy Create free account
hub / github.com/Noumena-Network/code / expandFilePath

Function expandFilePath

src/utils/commitAttribution.ts:237–242  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

235 * Expand a relative path to absolute path.
236 */
237export function expandFilePath(filePath: string): string {
238 if (isAbsolute(filePath)) {
239 return filePath
240 }
241 return join(getAttributionRepoRoot(), filePath)
242}
243
244/**
245 * Create an empty attribution state for a new session.

Callers 1

getFileMtimeFunction · 0.85

Calls 1

getAttributionRepoRootFunction · 0.85

Tested by

no test coverage detected