(value: string)
| 13 | const fileConcurrency = 8 |
| 14 | |
| 15 | function isSafeSegment(value: string) { |
| 16 | return ( |
| 17 | value.length > 0 && |
| 18 | value !== "." && |
| 19 | value !== ".." && |
| 20 | !value.includes("/") && |
| 21 | !value.includes("\\") && |
| 22 | !value.includes("\0") |
| 23 | ) |
| 24 | } |
| 25 | |
| 26 | function isSafeRelativePath(value: string) { |
| 27 | const segments = value.split("/") |