(p: Path)
| 37 | } |
| 38 | |
| 39 | export function normalizePath(p: Path): AbsPath { |
| 40 | let np = path.normalize(p); |
| 41 | if (np.endsWith(path.sep)) { |
| 42 | np = np.slice(0, -1); |
| 43 | } |
| 44 | return np; |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Check if a path is at or below a parent path in the directory tree. |
no test coverage detected