Directory of a stored (forward-slash, project-relative) path.
(p: string)
| 236 | |
| 237 | /** Directory of a stored (forward-slash, project-relative) path. */ |
| 238 | function dirOf(p: string): string { |
| 239 | const d = path.dirname(p); |
| 240 | return d === '' ? '.' : d; |
| 241 | } |
| 242 | |
| 243 | /** Parent directory, or null above the project root. */ |
| 244 | function parentOf(dir: string): string | null { |
no outgoing calls
no test coverage detected