(pathComponents []string)
| 267 | } |
| 268 | |
| 269 | func GetPathFromPathComponents(pathComponents []string) string { |
| 270 | if len(pathComponents) == 0 { |
| 271 | return "" |
| 272 | } |
| 273 | |
| 274 | root := pathComponents[0] |
| 275 | if root != "" { |
| 276 | root = EnsureTrailingDirectorySeparator(root) |
| 277 | } |
| 278 | |
| 279 | return root + strings.Join(pathComponents[1:], "/") |
| 280 | } |
| 281 | |
| 282 | func NormalizeSlashes(path string) string { |
| 283 | return strings.ReplaceAll(path, "\\", "/") |