Title: mkdtemp doc issue? · Issue #26435 · nodejs/node · GitHub
Open Graph Title: mkdtemp doc issue? · Issue #26435 · nodejs/node
X Title: mkdtemp doc issue? · Issue #26435 · nodejs/node
Description: During test-writing / manual fuzzing, I noticed that the doc for mkdtemp added in #6800 states that "Generates six random characters to be appended behind a required prefix to create a unique temporary directory". This is true on Linux a...
Open Graph Description: During test-writing / manual fuzzing, I noticed that the doc for mkdtemp added in #6800 states that "Generates six random characters to be appended behind a required prefix to create a unique tempo...
X Description: During test-writing / manual fuzzing, I noticed that the doc for mkdtemp added in #6800 states that "Generates six random characters to be appended behind a required prefix to create a unique ...
Opengraph URL: https://github.com/nodejs/node/issues/26435
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mkdtemp doc issue?","articleBody":"During test-writing / manual fuzzing, I noticed that the doc for mkdtemp added in https://github.com/nodejs/node/pull/6800 states that \"Generates six random characters to be appended behind a required prefix to create a unique temporary directory\". This is true on Linux and Windows, but misses an edge case on BSDs (including Apple). As seen below, it actually \"replaces trailing X's with random characters and then appends six additional random characters to the prefix to create a unique directory name\".\r\n```\r\n// on macOS\r\n\u003e fs.mkdtempSync(path.join(os.tmpdir(), 'foox')) // does as documented\r\n'/tmp/fooxz5Ve7r'\r\n\r\n\u003e fs.mkdtempSync(path.join(os.tmpdir(), 'fooX')) // also replaces the X from the prefix\r\n'/tmp/foo1PqEasA'\r\n ^-- not an 'X'\r\n```\r\n\r\nI think this is just a doc issue, but opening this as an issue to hear what others think.","author":{"url":"https://github.com/vtjnash","@type":"Person","name":"vtjnash"},"datePublished":"2019-03-04T17:28:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/26435/node/issues/26435"}
| 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:8ea15f3a-06a5-11f2-d088-85ed99d7fd35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCFE:9FE98:36F79B3:4C47CB1:6A4F4844 |
| html-safe-nonce | b47a73466a106feb580cb085694fd6b86c335084d4627604f337e8a069dc297b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0ZFOjlGRTk4OjM2Rjc5QjM6NEM0N0NCMTo2QTRGNDg0NCIsInZpc2l0b3JfaWQiOiIzMDg1MDA5MTUxNDcxODYzODc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8b3621a2b39d0f20d1ef48fa9ade3aab6b9d5db2c492e2892c60b007053b398b |
| hovercard-subject-tag | issue:416911032 |
| 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/26435/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b0d9f3e070639b55fd922644c7e077e11b8e11aa8192ed9b6df002ba4f9e0c94/nodejs/node/issues/26435 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0d9f3e070639b55fd922644c7e077e11b8e11aa8192ed9b6df002ba4f9e0c94/nodejs/node/issues/26435 |
| og:image:alt | During test-writing / manual fuzzing, I noticed that the doc for mkdtemp added in #6800 states that "Generates six random characters to be appended behind a required prefix to create a unique tempo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vtjnash |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width