-
-
Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Closed
Copy link
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
- Version: v10.15.0
- Platform: win10
- Subsystem: x64 win32
create a new file and set the file name 'test'
the index.js is same level
// index.js
const fs = require('fs')
fs.mkdir('./test', {
recursive: true
}, (err) => {
console.log(err) // [Error: EEXIST: file already exists]
})this will trigger the error
const fs = require('fs')
fs.mkdir('./test/a', {
recursive: true
}, (err) => {
console.log(err)
})this will not trigger the error and the process does not exit
if test is a directory is no problem, but if test is a file and recursive is true, the process does not exit and keep waiting and not trigger error
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.