(path: string)
| 477 | } |
| 478 | |
| 479 | function validPath(path: string): boolean { |
| 480 | if (typeof path !== "string") return false; |
| 481 | if (path.length < 1 || path.length > 240) return false; |
| 482 | if (path.startsWith("/") || path.includes("\0")) return false; |
| 483 | return !path.split("/").some((part) => part === "" || part === "." || part === ".."); |
| 484 | } |
no outgoing calls
no test coverage detected