ResolvePath resolves path in the instance directory.
(path string)
| 114 | |
| 115 | // ResolvePath resolves path in the instance directory. |
| 116 | func (c *Config) ResolvePath(path string) string { |
| 117 | if filepath.IsAbs(path) { |
| 118 | return path |
| 119 | } |
| 120 | if c.DataDir == "" { |
| 121 | return "" |
| 122 | } |
| 123 | return filepath.Join(c.DataDir, path) |
| 124 | } |
| 125 | |
| 126 | func (c *Config) ResolveAncient(name string, ancient string) string { |
| 127 | switch { |
no outgoing calls
no test coverage detected