Determines whether a path consists only of a path root.
(path string)
| 40 | |
| 41 | // Determines whether a path consists only of a path root. |
| 42 | func IsDiskPathRoot(path string) bool { |
| 43 | rootLength := GetEncodedRootLength(path) |
| 44 | return rootLength > 0 && rootLength == len(path) |
| 45 | } |
| 46 | |
| 47 | // IsDynamicFileName returns true if the file name represents a dynamic/virtual file |
| 48 | // that doesn't exist on disk (e.g., untitled files with paths like "^/untitled/..."). |
nothing calls this directly
no test coverage detected