GetPortPath returns the port.toml file path with first-letter classification. For example: GetPortPath("glog", "0.6.0") returns "ports/g/glog/0.6.0/port.toml"
(name, version string)
| 65 | // GetPortPath returns the port.toml file path with first-letter classification. |
| 66 | // For example: GetPortPath("glog", "0.6.0") returns "ports/g/glog/0.6.0/port.toml" |
| 67 | func GetPortPath(name, version string) string { |
| 68 | return filepath.Join(GetPortDir(name, version), "port.toml") |
| 69 | } |
| 70 | |
| 71 | // ParentDir return the parent directory of path. |
| 72 | func ParentDir(path string, levels int) string { |