(path: string)
| 336 | } |
| 337 | |
| 338 | const leaf = (path: string) => { |
| 339 | const idx = path.lastIndexOf("/") |
| 340 | return idx === -1 ? path : path.slice(idx + 1) |
| 341 | } |
| 342 | |
| 343 | const out = nodes.filter((node) => { |
| 344 | if (node.type === "file") return current.files.has(node.path) |