(filename)
| 112 | } |
| 113 | |
| 114 | function findVFSForPath(filename) { |
| 115 | const normalized = resolve(filename); |
| 116 | for (let i = 0; i < activeVFSList.length; i++) { |
| 117 | const vfs = activeVFSList[i]; |
| 118 | if (vfs.shouldHandle(normalized)) { |
| 119 | return { vfs, normalized }; |
| 120 | } |
| 121 | } |
| 122 | return null; |
| 123 | } |
| 124 | |
| 125 | // Sync read: check exists first, fall through to ENOENT for mounted VFS. |
| 126 | function findVFSWith(filename, syscall, fn) { |
no test coverage detected
searching dependent graphs…