-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Closed
Labels
windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
- Version: v12.16.2
- Platform: Windows 8.1 64-bit
- Subsystem:
What steps will reproduce the bug?
`var fs = require('fs')
fs.writeFileSync( "AUX.txt", "test", function(err){return console.log(err)} )
console.log( fs.readFileSync( "AUX.txt", {encoding: 'utf-8'}) )`
How often does it reproduce? Is there a required condition?
Always given the provided path "AUX.txt", independently of extension given (tested: "txt" / "js" / null), using another name does not fail.
What is the expected behavior?
A file normally accessible via the OS
What do you see instead?
- Opening the file with a generic text application fails (notepad++ and notepad)
notepad++:
"\\.\AUX" cannot be opened
"\\." doesn't exist
notepad:
Cannot find the \\.\AUX.txt file
- OS fails to delete or rename file
Additional information
- creating the file using an absolute path results in same behaviour
- fs.writeFile async method fails in the same way
- node does access file contents in the basic test provided
Metadata
Metadata
Assignees
Labels
windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.