(err, fd)
| 337 | } |
| 338 | |
| 339 | function readFileAfterOpen(err, fd) { |
| 340 | const context = this.context; |
| 341 | |
| 342 | if (err) { |
| 343 | context.callback(err); |
| 344 | return; |
| 345 | } |
| 346 | |
| 347 | context.fd = fd; |
| 348 | |
| 349 | const req = new FSReqCallback(); |
| 350 | req.oncomplete = readFileAfterStat; |
| 351 | req.context = context; |
| 352 | binding.fstat(fd, false, req); |
| 353 | } |
| 354 | |
| 355 | function readFileAfterStat(err, stats) { |
| 356 | const context = this.context; |