(pathOrUrl)
| 29 | }); |
| 30 | |
| 31 | function toPathStr(pathOrUrl) { |
| 32 | if (typeof pathOrUrl === 'string') return pathOrUrl; |
| 33 | if (pathOrUrl instanceof URL) return fileURLToPath(pathOrUrl); |
| 34 | if (Buffer.isBuffer(pathOrUrl)) return pathOrUrl.toString(); |
| 35 | return null; |
| 36 | } |
| 37 | |
| 38 | function noopFdSync(fd) { |
| 39 | if (getVirtualFd(fd)) return true; |
no test coverage detected
searching dependent graphs…