Convert relative filepath to absolute.
(base, path string)
| 705 | |
| 706 | // Convert relative filepath to absolute. |
| 707 | func toAbsolutePath(base, path string) string { |
| 708 | if filepath.IsAbs(path) { |
| 709 | return path |
| 710 | } |
| 711 | return filepath.Clean(filepath.Join(base, path)) |
| 712 | } |
| 713 | |
| 714 | // Detect platform from the UserAgent string. |
| 715 | func platformFromUA(ua string) string { |
no outgoing calls
no test coverage detected
searching dependent graphs…