`rel` and every folder above it, in the forms the watcher asks about.
(rel: string)
| 55 | |
| 56 | /** `rel` and every folder above it, in the forms the watcher asks about. */ |
| 57 | function pathAndFolders(rel: string): string[] { |
| 58 | const parts = rel.split('/'); |
| 59 | return [rel, ...parts.slice(0, -1).map((_, i) => parts.slice(0, i + 1).join('/') + '/')]; |
| 60 | } |
| 61 | |
| 62 | const sorted = (files: Iterable<string>): string[] => [...files].sort(); |
| 63 |
no test coverage detected