| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a75a6dd2-d92a-8671-05cc-48934a730f94 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A80C:DD8B9:6CDE87:897253:6B036666 |
| html-safe-nonce | 5466435fad1cc124877050e0805c9b2cbc2e006f8d9db052a0eba9ad753b617e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODBDOkREOEI5OjZDREU4Nzo4OTcyNTM6NkIwMzY2NjYiLCJ2aXNpdG9yX2lkIjoiNzcyMDA1NTA0MTc2NzQ2NjU5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0a3b033071871a23278c67ee59196a62dd6b66afcc4a2d4873e8c6695e456113 |
| hovercard-subject-tag | pull_request:422589257 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/node/pull/33549/files |
| twitter:image | https://avatars.githubusercontent.com/u/2352663?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2352663?s=400&v=4 |
| og:image:alt | fs.mkstemp and fs.mkstempSync return path and fd.
fsPromises.mkstemp returns path and handle.
@nodejs/fs
Checklist
make -j4 test (UNIX), or vcbuild test (Windows) passes
tests and/or benchmark... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/nodejs/node/pull/33549/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F33549%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F33549%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode |
| Reload | https://github.com/nodejs/node/pull/33549/files |
| Reload | https://github.com/nodejs/node/pull/33549/files |
| Reload | https://github.com/nodejs/node/pull/33549/files |
| nodejs | https://github.com/nodejs |
| node | https://github.com/nodejs/node |
| Code | https://github.com/nodejs/node |
| Issues639 (639) | https://github.com/nodejs/node/issues |
| Pull requests667 (667) | https://github.com/nodejs/node/pulls |
| Actions | https://github.com/nodejs/node/actions |
| Projects | https://github.com/nodejs/node/projects |
| Security and quality | https://github.com/nodejs/node/security |
| Insights | https://github.com/nodejs/node/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose |
| targos | https://github.com/targos |
| nodejs:main | https://github.com/nodejs/node/tree/main |
| targos:mkstemp | https://github.com/targos/node/tree/mkstemp |
|
Conversation
39
| https://github.com/nodejs/node/pull/33549 |
|
Commits
7
| https://github.com/nodejs/node/pull/33549/commits |
|
Checks
0
| https://github.com/nodejs/node/pull/33549/checks |
|
Files changed
| https://github.com/nodejs/node/pull/33549/files |
| Please reload this page | https://github.com/nodejs/node/pull/33549/files |
|
fs: add mkstemp functions
| https://github.com/nodejs/node/pull/33549/files#top |
|
Show all changes
7 commits
| https://github.com/nodejs/node/pull/33549/files |
|
8ea7bb6
fs: add mkstemp functions
targos May 25, 2020
| https://github.com/nodejs/node/pull/33549/commits/8ea7bb66c1c9b588bf00f6abb86663031354de26 |
|
308b6f9
fixup! fs: add mkstemp functions
targos May 25, 2020
| https://github.com/nodejs/node/pull/33549/commits/308b6f92356d21a27a66b6a81175c683e67ce21c |
|
e047588
fixup! fixup! fs: add mkstemp functions
targos May 25, 2020
| https://github.com/nodejs/node/pull/33549/commits/e0475885778025fd0025aa7c6d44e66f247e2917 |
|
744a476
fixup! fixup! fixup! fs: add mkstemp functions
targos May 25, 2020
| https://github.com/nodejs/node/pull/33549/commits/744a47672fab85d3013bc55850a97c0544eec6c9 |
|
bf9ce89
fixup! fixup! fixup! fixup! fs: add mkstemp functions
targos May 25, 2020
| https://github.com/nodejs/node/pull/33549/commits/bf9ce89b87d9397e1711b8c24dbb34e8bb430393 |
|
f57b726
Update doc/api/fs.md
targos May 25, 2020
| https://github.com/nodejs/node/pull/33549/commits/f57b726d030a4da1409bd82f2503ce8e762ebc3e |
|
52da908
Update doc/api/fs.md
targos May 25, 2020
| https://github.com/nodejs/node/pull/33549/commits/52da9082b89dc5c28390fe2c1427d8d45778d97f |
|
Clear filters
| https://github.com/nodejs/node/pull/33549/files |
| Please reload this page | https://github.com/nodejs/node/pull/33549/files |
| Please reload this page | https://github.com/nodejs/node/pull/33549/files |
|
fs.md
| https://github.com/nodejs/node/pull/33549/files#diff-11c13307cb334211e0d11f4e7e43bdc0a34e437779a63a6ff645e62448d973d2 |
|
fs.js
| https://github.com/nodejs/node/pull/33549/files#diff-9b2c5bf36570be7a09ba2597abdf6d9bc2cc1e19866b6674b0cf275c1188dcad |
|
promises.js
| https://github.com/nodejs/node/pull/33549/files#diff-408a6d8eb0a23c586754d4f3af46c8b1927a32d80a6bdfd3bbd87c0f2a012b1a |
|
utils.js
| https://github.com/nodejs/node/pull/33549/files#diff-5cd422a9a64bc2c1275d70ba5dcafbc5ea55274432fffc5e4159126007dc4894 |
|
node_file.cc
| https://github.com/nodejs/node/pull/33549/files#diff-70e3325bd2115867617ae2a16321c5de53c070ff2841976fe5b849675a5111e6 |
|
test-fs-assert-encoding-error.js
| https://github.com/nodejs/node/pull/33549/files#diff-b08eed5f64fa13d8968bd8ccc15e3565e566b07a70870444310519e99bfc2a34 |
|
test-fs-error-messages.js
| https://github.com/nodejs/node/pull/33549/files#diff-455dd1c2dc85a1b8757c583e26c214127f6209384269667ab887f363a099d7f9 |
|
test-fs-mkdtemp.js
| https://github.com/nodejs/node/pull/33549/files#diff-1394a748365d296140c9b39bdb7f7b2a03e8d0dc36f1f6e335d24a935b9ff9bc |
|
test-fs-mkstemp-prefix-check.js
| https://github.com/nodejs/node/pull/33549/files#diff-1b46579dfd9bffa99569ffe5b0b6d6bc3a287d8c8153232d32a02f1a1bdcaf0e |
|
test-fs-mkstemp.js
| https://github.com/nodejs/node/pull/33549/files#diff-27ef017628fc8904e5948325ed357691aa09c5c35a545595b122d4cbd5b83e94 |
|
test-fs-options-immutable.js
| https://github.com/nodejs/node/pull/33549/files#diff-5b0dca1041a8e6e405d30b782097e3dbf0395fc2095e65de522af430f7bb160d |
|
test-fs-promises.js
| https://github.com/nodejs/node/pull/33549/files#diff-1ff0d07958f5cf5b0aef4a7cf63f5f14fe08abe050cee2bb0a4f9d0869e30033 |
|
test-trace-events-fs-sync.js
| https://github.com/nodejs/node/pull/33549/files#diff-a40fb3ff172f90a1c4ee524da0503e2ce4c9c7b627a8fc985912b55fc4d74a5b |
| doc/api/fs.md | https://github.com/nodejs/node/pull/33549/files#diff-11c13307cb334211e0d11f4e7e43bdc0a34e437779a63a6ff645e62448d973d2 |
|
View file
| https://github.com/targos/node/blob/52da9082b89dc5c28390fe2c1427d8d45778d97f/doc/api/fs.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/33549/{{ revealButtonHref }} |
|
| https://github.com/nodejs/node/pull/33549/files#diff-11c13307cb334211e0d11f4e7e43bdc0a34e437779a63a6ff645e62448d973d2 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-11c13307cb334211e0d11f4e7e43bdc0a34e437779a63a6ff645e62448d973d2 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-11c13307cb334211e0d11f4e7e43bdc0a34e437779a63a6ff645e62448d973d2 |
| Please reload this page | https://github.com/nodejs/node/pull/33549/files |
| Please reload this page | https://github.com/nodejs/node/pull/33549/files |
|
| https://github.com/nodejs/node/pull/33549/files#diff-11c13307cb334211e0d11f4e7e43bdc0a34e437779a63a6ff645e62448d973d2 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-11c13307cb334211e0d11f4e7e43bdc0a34e437779a63a6ff645e62448d973d2 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-11c13307cb334211e0d11f4e7e43bdc0a34e437779a63a6ff645e62448d973d2 |
| lib/fs.js | https://github.com/nodejs/node/pull/33549/files#diff-9b2c5bf36570be7a09ba2597abdf6d9bc2cc1e19866b6674b0cf275c1188dcad |
|
View file
| https://github.com/targos/node/blob/52da9082b89dc5c28390fe2c1427d8d45778d97f/lib/fs.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/33549/{{ revealButtonHref }} |
|
| https://github.com/nodejs/node/pull/33549/files#diff-9b2c5bf36570be7a09ba2597abdf6d9bc2cc1e19866b6674b0cf275c1188dcad |
|
| https://github.com/nodejs/node/pull/33549/files#diff-9b2c5bf36570be7a09ba2597abdf6d9bc2cc1e19866b6674b0cf275c1188dcad |
|
| https://github.com/nodejs/node/pull/33549/files#diff-9b2c5bf36570be7a09ba2597abdf6d9bc2cc1e19866b6674b0cf275c1188dcad |
|
| https://github.com/nodejs/node/pull/33549/files#diff-9b2c5bf36570be7a09ba2597abdf6d9bc2cc1e19866b6674b0cf275c1188dcad |
| lib/internal/fs/promises.js | https://github.com/nodejs/node/pull/33549/files#diff-408a6d8eb0a23c586754d4f3af46c8b1927a32d80a6bdfd3bbd87c0f2a012b1a |
|
View file
| https://github.com/targos/node/blob/52da9082b89dc5c28390fe2c1427d8d45778d97f/lib/internal/fs/promises.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/33549/{{ revealButtonHref }} |
|
| https://github.com/nodejs/node/pull/33549/files#diff-408a6d8eb0a23c586754d4f3af46c8b1927a32d80a6bdfd3bbd87c0f2a012b1a |
|
| https://github.com/nodejs/node/pull/33549/files#diff-408a6d8eb0a23c586754d4f3af46c8b1927a32d80a6bdfd3bbd87c0f2a012b1a |
|
| https://github.com/nodejs/node/pull/33549/files#diff-408a6d8eb0a23c586754d4f3af46c8b1927a32d80a6bdfd3bbd87c0f2a012b1a |
|
| https://github.com/nodejs/node/pull/33549/files#diff-408a6d8eb0a23c586754d4f3af46c8b1927a32d80a6bdfd3bbd87c0f2a012b1a |
| lib/internal/fs/utils.js | https://github.com/nodejs/node/pull/33549/files#diff-5cd422a9a64bc2c1275d70ba5dcafbc5ea55274432fffc5e4159126007dc4894 |
|
View file
| https://github.com/targos/node/blob/52da9082b89dc5c28390fe2c1427d8d45778d97f/lib/internal/fs/utils.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/33549/{{ revealButtonHref }} |
|
| https://github.com/nodejs/node/pull/33549/files#diff-5cd422a9a64bc2c1275d70ba5dcafbc5ea55274432fffc5e4159126007dc4894 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-5cd422a9a64bc2c1275d70ba5dcafbc5ea55274432fffc5e4159126007dc4894 |
| src/node_file.cc | https://github.com/nodejs/node/pull/33549/files#diff-70e3325bd2115867617ae2a16321c5de53c070ff2841976fe5b849675a5111e6 |
|
View file
| https://github.com/targos/node/blob/52da9082b89dc5c28390fe2c1427d8d45778d97f/src/node_file.cc |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/33549/{{ revealButtonHref }} |
|
| https://github.com/nodejs/node/pull/33549/files#diff-70e3325bd2115867617ae2a16321c5de53c070ff2841976fe5b849675a5111e6 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-70e3325bd2115867617ae2a16321c5de53c070ff2841976fe5b849675a5111e6 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-70e3325bd2115867617ae2a16321c5de53c070ff2841976fe5b849675a5111e6 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-70e3325bd2115867617ae2a16321c5de53c070ff2841976fe5b849675a5111e6 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-70e3325bd2115867617ae2a16321c5de53c070ff2841976fe5b849675a5111e6 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-70e3325bd2115867617ae2a16321c5de53c070ff2841976fe5b849675a5111e6 |
| test/parallel/test-fs-assert-encoding-error.js | https://github.com/nodejs/node/pull/33549/files#diff-b08eed5f64fa13d8968bd8ccc15e3565e566b07a70870444310519e99bfc2a34 |
|
View file
| https://github.com/targos/node/blob/52da9082b89dc5c28390fe2c1427d8d45778d97f/test/parallel/test-fs-assert-encoding-error.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/33549/{{ revealButtonHref }} |
|
| https://github.com/nodejs/node/pull/33549/files#diff-b08eed5f64fa13d8968bd8ccc15e3565e566b07a70870444310519e99bfc2a34 |
|
| https://github.com/nodejs/node/pull/33549/files#diff-b08eed5f64fa13d8968bd8ccc15e3565e566b07a70870444310519e99bfc2a34 |
| Please reload this page | https://github.com/nodejs/node/pull/33549/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |