(path string, currentDirectory string)
| 131 | } |
| 132 | |
| 133 | func GetPathComponents(path string, currentDirectory string) []string { |
| 134 | path = CombinePaths(currentDirectory, path) |
| 135 | return pathComponents(path, GetRootLength(path)) |
| 136 | } |
| 137 | |
| 138 | func pathComponents(path string, rootLength int) []string { |
| 139 | root := path[:rootLength] |