IsDynamicFileName returns true if the file name represents a dynamic/virtual file that doesn't exist on disk (e.g., untitled files with paths like "^/untitled/...").
(fileName string)
| 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/..."). |
| 49 | func IsDynamicFileName(fileName string) bool { |
| 50 | return strings.HasPrefix(fileName, "^/") |
| 51 | } |
| 52 | |
| 53 | // Determines whether a path starts with an absolute path component (i.e. `/`, `c:/`, `file://`, etc.). |
| 54 | // |
no outgoing calls
no test coverage detected