(path: string)
| 39 | |
| 40 | /** True when a path is absolute (POSIX `/…` or Windows `C:\…` / `C:/…`). */ |
| 41 | export function isAbsoluteFilePath(path: string): boolean { |
| 42 | const normalized = normalizeSlashPath(path) |
| 43 | return normalized.startsWith("/") || WINDOWS_ABSOLUTE_PATH.test(normalized) |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Resolve a session file path to an absolute filesystem path for reveal-in- |
no test coverage detected