Der Verzeichnisteil eines workspace-relativen Pfades, ohne Schluss-Schraegstrich.
(filePath: string)
| 193 | |
| 194 | /** Der Verzeichnisteil eines workspace-relativen Pfades, ohne Schluss-Schraegstrich. */ |
| 195 | function directoryOf(filePath: string): string { |
| 196 | const at = filePath.lastIndexOf('/'); |
| 197 | return at < 0 ? '' : filePath.slice(0, at); |
| 198 | } |
| 199 | |
| 200 | /** `a/b/../c` zu `a/c`. Rein textlich; es wird nichts am Dateisystem geprueft. */ |
| 201 | function normalizePath(path: string): string { |
no outgoing calls
no test coverage detected