(path: string)
| 179 | } |
| 180 | |
| 181 | const lstatIfExists = (path: string): Stats | undefined => { |
| 182 | try { |
| 183 | return lstatSync(path) |
| 184 | } catch (e) { |
| 185 | if ((e as NodeJS.ErrnoException).code === "ENOENT") return undefined |
| 186 | throw e |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | const isWithinDir = (root: string, target: string): boolean => { |
| 191 | const rel = relative(root, target) |
no outgoing calls
no test coverage detected