(path string)
| 240 | } |
| 241 | |
| 242 | func GetRootLength(path string) int { |
| 243 | rootLength := GetEncodedRootLength(path) |
| 244 | if rootLength < 0 { |
| 245 | return ^rootLength |
| 246 | } |
| 247 | return rootLength |
| 248 | } |
| 249 | |
| 250 | func GetDirectoryPath(path string) string { |
| 251 | path = NormalizeSlashes(path) |