PrefixPath returns the absolute location of the prefix snapshot.
(root string)
| 26 | |
| 27 | // PrefixPath returns the absolute location of the prefix snapshot. |
| 28 | func 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. |
| 37 | func DeltaPath(root string) string { |
no outgoing calls