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

fs.writeFile behaviour not consistent with fs.write functions. #657

Closed
wants to merge 1 commit into from
Closed

fs.writeFile behaviour not consistent with fs.write functions. #657

wants to merge 1 commit into from

Conversation

sciolist
Copy link

the write and writeSync methods both convert nonbuffer data to be written to a string when called, while writeFile and writeFileSync do not (the data is instead passed directly to the buffer constructor.) It seems inconsistent that

fs.write(f, 1234, ...);

should produce different results than

fs.writeFile("out", 1234, ...);

seeing as how the created buffer from inside the function is never accessible to the caller.

@isaacs
Copy link

isaacs commented Feb 11, 2011

+1

@koichik koichik closed this Jul 23, 2011
@koichik
Copy link

koichik commented Jul 23, 2011

Thanks!

@koichik
Copy link

koichik commented Jul 23, 2011

Ouch! I forgot confirmation of the CLA.
@sciolist, can you sign it?

@koichik koichik reopened this Jul 23, 2011
@sciolist
Copy link
Author

Hrm, I signed it before after making the pull request. Resubmitted now.

On Sat, Jul 23, 2011 at 1:26 PM, koichik <
[email protected]>wrote:

Ouch! I forgot confirmation of the CLA.
@sciolist, can you sign it?

Reply to this email directly or view it on GitHub:
#657 (comment)

@koichik koichik closed this in fa829b0 Jul 23, 2011
@koichik
Copy link

koichik commented Jul 23, 2011

Thanks!!

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

Successfully merging this pull request may close these issues.

3 participants