Title: Problem with fs.writeFile · Issue #17 · nodegit/promisify-node · GitHub
Open Graph Title: Problem with fs.writeFile · Issue #17 · nodegit/promisify-node
X Title: Problem with fs.writeFile · Issue #17 · nodegit/promisify-node
Description: This appears to be caused by the fact that fs module is mutated by promisify('fs'). Internally, fs.writeFile uses some other fs methods in a callback fashion, so it expects fs to be un-modified. Repro: const promisify = require('promisif...
Open Graph Description: This appears to be caused by the fact that fs module is mutated by promisify('fs'). Internally, fs.writeFile uses some other fs methods in a callback fashion, so it expects fs to be un-modified. Re...
X Description: This appears to be caused by the fact that fs module is mutated by promisify('fs'). Internally, fs.writeFile uses some other fs methods in a callback fashion, so it expects fs to be un-modi...
Opengraph URL: https://github.com/nodegit/promisify-node/issues/17
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problem with fs.writeFile","articleBody":"This appears to be caused by the fact that `fs` module is mutated by `promisify('fs')`. Internally, `fs.writeFile` uses some other `fs` methods in a callback fashion, so it expects `fs` to be un-modified.\n\nRepro:\n\n```\nconst promisify = require('promisify-node');\nconst fs = promisify('fs');\nfs.writeFile('./testfile.txt', 'Hello World')\n .then(() => {\n console.log('File saved!');\n })\n .catch((error) => {\n console.error('Error doing something:', error);\n });\n```\n\nNeither 'File saved!' or 'Error doing something' ever gets logged. The file gets created but no data is written to it. Tested on OS X 10.11 using Node v5.\n","author":{"url":"https://github.com/sstur","@type":"Person","name":"sstur"},"datePublished":"2016-02-09T23:03:33Z","url":"https://github.com/nodegit/promisify-node/issues/17"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:204a218b-8789-1c69-e571-f2e3c5b97bae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEA2:1EF581:842339:C0BE3F:6AFD88E7 |
| html-safe-nonce | bc13bacf56e1e482d9ba4d344138b0575cc3d46fc06e30a70911db4d79426c91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUEyOjFFRjU4MTo4NDIzMzk6QzBCRTNGOjZBRkQ4OEU3IiwidmlzaXRvcl9pZCI6IjQxMzQyNDM1MzU2MTAwMjIxMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f939bb3b0a7cef273f74007a96e4eddd396cd055619644baaca5436c8c2c2fd6 |
| hovercard-subject-tag | issue:132563041 |
| 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/nodegit/promisify-node/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e824815a4d37bb7804cc5ba6867c316f5f06bfa8650ce1bda7a7d9ad74bda90/nodegit/promisify-node/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e824815a4d37bb7804cc5ba6867c316f5f06bfa8650ce1bda7a7d9ad74bda90/nodegit/promisify-node/issues/17 |
| og:image:alt | This appears to be caused by the fact that fs module is mutated by promisify('fs'). Internally, fs.writeFile uses some other fs methods in a callback fashion, so it expects fs to be un-modified. Re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sstur |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/promisify-node git https://github.com/nodegit/promisify-node.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 18692565 |
| octolytics-dimension-repository_nwo | nodegit/promisify-node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18692565 |
| octolytics-dimension-repository_network_root_nwo | nodegit/promisify-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 | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width