fs.readFile does not account file system flag 'a+' in Node 14.11 #35290
Labels
confirmed-bug
Issues with confirmed bugs.
fs
Issues and PRs related to the fs subsystem / file system.
regression
Issues related to regressions.
I tried to find similar issues but couldn't, sorry if it is already reported.
v14.11.0
Darwin MacBook-Pro-Daniil.local 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64 x86_64
What steps will reproduce the bug?
With
a+
flag file should be created if it does not exist. It works withreadFileSync
, but fails withreadFile
There is also similar problem with
w+
flag and maybe others, but I did not tested all of them.How often does it reproduce? Is there a required condition?
Always with node v14.11
Works fine in node v12.18.4
What is the expected behavior?
File is created before reading and there is no ENOENT error
What do you see instead?
ENOENT error
The text was updated successfully, but these errors were encountered: