Join is equivalent to filepath.Join. Empty strings are ignored, Can return empty string. Normalizes before returning otherwise.
(paths ...string)
| 169 | // |
| 170 | // Normalizes before returning otherwise. |
| 171 | func Join(paths ...string) string { |
| 172 | unnormalized := make([]string, len(paths)) |
| 173 | for i, path := range paths { |
| 174 | unnormalized[i] = Unnormalize(path) |
| 175 | } |
| 176 | value := filepath.Join(unnormalized...) |
| 177 | if value == "" { |
| 178 | return "" |
| 179 | } |
| 180 | return Normalize(value) |
| 181 | } |
| 182 | |
| 183 | // Rel is equivalent to filepath.Rel. |
| 184 | // |
searching dependent graphs…