-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs writeFile after truncate doesn't write at beginning of the file #24923
Labels
fs
Issues and PRs related to the fs subsystem / file system.
Comments
This was referenced Dec 9, 2018
vsemozhetbyt
added
the
fs
Issues and PRs related to the fs subsystem / file system.
label
Dec 9, 2018
|
2 tasks
@kghost does https://github.com/nodejs/node/pull/27282/files clarify for you why this occurs? |
sam-github
added a commit
to sam-github/node
that referenced
this issue
Apr 22, 2019
This is a continuing source of confusion, attempt to make it even more clear. Fixes: nodejs#24923
targos
pushed a commit
that referenced
this issue
Apr 27, 2019
This is a continuing source of confusion, attempt to make it even more clear. Fixes: #24923 PR-URL: #27282 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
Merged
43 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test case:
This will result a file with lots of '\0' at beginning of the file.
And w/o the ability to seek, there is no way to write at the beginning of the file.
The text was updated successfully, but these errors were encountered: