(path, options)
| 213 | return result; |
| 214 | }, |
| 215 | lstatSync(path, options) { |
| 216 | const pathStr = toPathStr(path); |
| 217 | if (pathStr === null) return undefined; |
| 218 | const normalized = resolve(pathStr); |
| 219 | for (let i = 0; i < activeVFSList.length; i++) { |
| 220 | const vfs = activeVFSList[i]; |
| 221 | if (vfs.shouldHandle(normalized)) { |
| 222 | try { |
| 223 | return vfs.lstatSync(normalized, options); |
| 224 | } catch (e) { |
| 225 | if (e?.code === 'ENOENT' && options?.throwIfNoEntry === false) return undefined; |
| 226 | throw e; |
| 227 | } |
| 228 | } |
| 229 | } |
| 230 | return undefined; |
| 231 | }, |
| 232 | statSync(path, options) { |
| 233 | try { |
| 234 | return vfsRead(path, 'stat', (vfs, n) => vfs.statSync(n, options)); |
no test coverage detected
searching dependent graphs…