(a: string, b: string)
| 3 | |
| 4 | export namespace Filesystem { |
| 5 | export function overlaps(a: string, b: string) { |
| 6 | const relA = relative(a, b) |
| 7 | const relB = relative(b, a) |
| 8 | return !relA || !relA.startsWith("..") || !relB || !relB.startsWith("..") |
| 9 | } |
| 10 | |
| 11 | export function contains(parent: string, child: string) { |
| 12 | return !relative(parent, child).startsWith("..") |
nothing calls this directly
no outgoing calls
no test coverage detected