MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / resolveAbsPath

Function resolveAbsPath

agentContext/builder.go:475–485  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

473 reversed = append(reversed, current)
474 if current == root {
475 break
476 }
477 parent := filepath.Dir(current)
478 if parent == current {
479 return []string{cwd}
480 }
481 current = parent
482 }
483 out := make([]string, 0, len(reversed))
484 for i := len(reversed) - 1; i >= 0; i-- {
485 out = append(out, reversed[i])
486 }
487 return out
488}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected