We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
w+
v1.1.37
Linux 6.6.62 x86_64
test.mjs
import fs from "fs"; fs.readFileSync("data.txt", { encoding: "utf8", flag: "w+" })
bun test.mjs
data.txt
run node test.mjs
node test.mjs
<no output>
created a new file data.txt in the current directory.
error and no file created
1 | import fs from "fs"; 2 | fs.readFileSync("data.txt", { encoding: "utf8", flag: "w+" }) ^ ENOENT: No such file or directory errno: -2 syscall: "open" path: "data.txt"
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
v1.1.37
What platform is your computer?
Linux 6.6.62 x86_64
What steps can reproduce the bug?
test.mjs
contentbun test.mjs
data.txt
doesn't existWhat is the expected behavior?
run
node test.mjs
created a new file
data.txt
in the current directory.What do you see instead?
error and no file created
Additional information
No response
The text was updated successfully, but these errors were encountered: