MCPcopy Create free account
hub / github.com/JordanCoin/codemap / PrefixPath

Function PrefixPath

handoff/storage.go:28–34  ·  view source on GitHub ↗

PrefixPath returns the absolute location of the prefix snapshot.

(root string)

Source from the content-addressed store, hash-verified

26
27// PrefixPath returns the absolute location of the prefix snapshot.
28func PrefixPath(root string) string {
29 absRoot, err := filepath.Abs(root)
30 if err != nil {
31 return filepath.Join(root, ".codemap", prefixFilename)
32 }
33 return filepath.Join(absRoot, ".codemap", prefixFilename)
34}
35
36// DeltaPath returns the absolute location of the delta snapshot.
37func DeltaPath(root string) string {

Callers 3

runHandoffSubcommandFunction · 0.92
WriteLatestFunction · 0.85
TestBuildWriteReadFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBuildWriteReadFunction · 0.68