Title: streaming / iterative fs.readdir · Issue #583 · nodejs/node · GitHub
Open Graph Title: streaming / iterative fs.readdir · Issue #583 · nodejs/node
X Title: streaming / iterative fs.readdir · Issue #583 · nodejs/node
Description: since we're in ES6 territory now, i'm thinking the sync version should be an iterable var dirs = fs.readdirIter(__dirname); for (dir of dirs) { } and have the async version be an object stream: var stream = fs.readdirStream(__dirname); s...
Open Graph Description: since we're in ES6 territory now, i'm thinking the sync version should be an iterable var dirs = fs.readdirIter(__dirname); for (dir of dirs) { } and have the async version be an object stream: var...
X Description: since we're in ES6 territory now, i'm thinking the sync version should be an iterable var dirs = fs.readdirIter(__dirname); for (dir of dirs) { } and have the async version be an object str...
Opengraph URL: https://github.com/nodejs/node/issues/583
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"streaming / iterative fs.readdir","articleBody":"since we're in ES6 territory now, i'm thinking the sync version should be an iterable\n\n``` js\nvar dirs = fs.readdirIter(__dirname);\nfor (dir of dirs) {\n\n}\n```\n\nand have the async version be an object stream:\n\n``` js\nvar stream = fs.readdirStream(__dirname);\nstream.on('data', dir =\u003e )\n```\n\nSee: https://github.com/joyent/node/issues/388\n","author":{"url":"https://github.com/jonathanong","@type":"Person","name":"jonathanong"},"datePublished":"2015-01-23T23:53:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":93},"url":"https://github.com/583/node/issues/583"}
| 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:bc3befab-9f0d-215f-b2ef-2c2a3e7c7d42 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8936:633B1:2F3516F:40FC683:6A4F13BA |
| html-safe-nonce | f0370f177c4ed7f1e446349bddb1f6164ea9c2289059f6071c65286000c0eb24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTM2OjYzM0IxOjJGMzUxNkY6NDBGQzY4Mzo2QTRGMTNCQSIsInZpc2l0b3JfaWQiOiIzMzE4ODA3MDc5MjA5MDc5NzM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 54e7a89eed79748d882b524df34c71937f62f110c2f1aa34262843cea4e1eecb |
| hovercard-subject-tag | issue:55348288 |
| 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/583/issue_layout |
| twitter:image | https://opengraph.githubassets.com/078c7212ac53393409974b0e184fe48ff25a585325f4677017683b2cf684cd77/nodejs/node/issues/583 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/078c7212ac53393409974b0e184fe48ff25a585325f4677017683b2cf684cd77/nodejs/node/issues/583 |
| og:image:alt | since we're in ES6 territory now, i'm thinking the sync version should be an iterable var dirs = fs.readdirIter(__dirname); for (dir of dirs) { } and have the async version be an object stream: var... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jonathanong |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width