Skip to content

fs.writeFile callback has no error when writing file failed #13868

Closed
@apoliszk

Description

@apoliszk
  • Version: v8.1.2
  • Platform: win10 64bit
var fs = require('fs');

fs.writeFile('test: abc.js', 'aaaa', function (err) {
    debugger;
});

The filename has a colon which is not allowed on win10.
The piece of code wrote a file named test which suppose to be test: abc.js, and there was no content.
The execution was failed, but there was no error. Parameter err is null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.libuvIssues and PRs related to the libuv dependency or the uv binding.windowsIssues and PRs related to the Windows platform.wipIssues and PRs that are still a work in progress.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions