Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

make readFile accept fd #8471

Closed
rlidwka opened this issue Sep 30, 2014 · 2 comments
Closed

make readFile accept fd #8471

rlidwka opened this issue Sep 30, 2014 · 2 comments

Comments

@rlidwka
Copy link

rlidwka commented Sep 30, 2014

We have an fd of the file that's already opened, and need to read the entire file.

I suppose I could just copy fs.readFile and remove fs.open from it, but it'd be nicer if fs.readFile would just accept an fd.

@chrisdickinson
Copy link

I imagine a PR for this would be welcome!

@jwueller
Copy link

jwueller commented Oct 1, 2014

I have contributed before and am interested in doing this one to get back in there. I'll check it out tomorrow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants