Title: fs:fs.mkdir() the process does not exit when recursive is set to true in some case · Issue #28241 · nodejs/node · GitHub
Open Graph Title: fs:fs.mkdir() the process does not exit when recursive is set to true in some case · Issue #28241 · nodejs/node
X Title: fs:fs.mkdir() the process does not exit when recursive is set to true in some case · Issue #28241 · nodejs/node
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) // ...
Open Graph 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:...
X 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('....
Opengraph URL: https://github.com/nodejs/node/issues/28241
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fs:fs.mkdir() the process does not exit when recursive is set to true in some case","articleBody":"\r\n* **Version**: v10.15.0\r\n* **Platform**: win10\r\n* **Subsystem**: x64 win32\r\ncreate a new file and set the file name 'test'\r\nthe index.js is same level \r\n\r\n```js\r\n// index.js\r\nconst fs = require('fs')\r\n\r\nfs.mkdir('./test', {\r\n recursive: true\r\n}, (err) => {\r\n console.log(err) // [Error: EEXIST: file already exists]\r\n})\r\n\r\n```\r\nthis will trigger the error\r\n```js\r\nconst fs = require('fs')\r\n\r\nfs.mkdir('./test/a', {\r\n recursive: true\r\n}, (err) => {\r\n console.log(err) \r\n})\r\n```\r\nthis will not trigger the error and the process does not exit\r\n\r\nif 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\r\n\r\n\r\n\r\n \r\n\r\n","author":{"url":"https://github.com/changk99","@type":"Person","name":"changk99"},"datePublished":"2019-06-15T04:40:38Z","url":"https://github.com/nodejs/node/issues/28241"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c1aa4acf-471c-a6e8-eccb-22fa3dcf6af7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB16:1587FA:BD20DE:FB6BEE:6AED3C2B |
| html-safe-nonce | dd8f8c36ef4222f1041abaca06fa490c3133a18cd32540b35006a098d49e6491 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjE2OjE1ODdGQTpCRDIwREU6RkI2QkVFOjZBRUQzQzJCIiwidmlzaXRvcl9pZCI6IjY1MjAwNDY1MDUwMjMwNjEwMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2b46a3c8296424c92e349f1e16b2480f34802e40f817a26c0380241564bcae2c |
| hovercard-subject-tag | issue:456499077 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/28241/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2d9b87a46aa540ac116d9021a9bf34372870a6323f93d249ed4de98eea0b0be/nodejs/node/issues/28241 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2d9b87a46aa540ac116d9021a9bf34372870a6323f93d249ed4de98eea0b0be/nodejs/node/issues/28241 |
| og:image:alt | 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:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | changk99 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26c92a9388ddfad3fa88d132b5d5f0b4747030233dcc4e5efb05f1cbae152184 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c629ad99c254d306375fc8354d04321c2c362236 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width