-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
errorsIssues and PRs related to JavaScript errors originated in Node.js core.Issues and PRs related to JavaScript errors originated in Node.js core.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
Refs: #38604 and #38604 (review)
const file = '/tmp/1.txt'
fs.writeFileSync(file, '') // Create first
fs.writeFile(file, 'hello', { flag: 'r' }, (err) => {
console.log(err)
// [Error: EBADF: bad file descriptor, write] {
// errno: -9,
// code: 'EBADF',
// syscall: 'write'
// }
})Metadata
Metadata
Assignees
Labels
errorsIssues and PRs related to JavaScript errors originated in Node.js core.Issues and PRs related to JavaScript errors originated in Node.js core.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.