{"action":"created","issue":{"url":"https://api.github.com/repos/iojs/io.js/issues/583","labels_url":"https://api.github.com/repos/iojs/io.js/issues/583/labels{/name}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/583/comments","events_url":"https://api.github.com/repos/iojs/io.js/issues/583/events","html_url":"https://github.com/iojs/io.js/issues/583","id":55348288,"number":583,"title":"streaming / iterative fs.readdir","user":{"login":"jonathanong","id":643505,"avatar_url":"https://avatars.githubusercontent.com/u/643505?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanong","html_url":"https://github.com/jonathanong","followers_url":"https://api.github.com/users/jonathanong/followers","following_url":"https://api.github.com/users/jonathanong/following{/other_user}","gists_url":"https://api.github.com/users/jonathanong/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanong/subscriptions","organizations_url":"https://api.github.com/users/jonathanong/orgs","repos_url":"https://api.github.com/users/jonathanong/repos","events_url":"https://api.github.com/users/jonathanong/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanong/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iojs/io.js/labels/fs","name":"fs","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2015-01-23T23:53:00Z","updated_at":"2015-01-29T09:01:55Z","closed_at":null,"body":"since we're in ES6 territory now, i'm thinking the sync version should be an iterable\r\n\r\n```js\r\nvar dirs = fs.readdirIter(__dirname);\r\nfor (dir of dirs) {\r\n  \r\n}\r\n```\r\n\r\nand have the async version be an object stream:\r\n\r\n```js\r\nvar stream = fs.readdirStream(__dirname);\r\nstream.on('data', dir => )\r\n```\r\n\r\nSee: https://github.com/joyent/node/issues/388"},"comment":{"url":"https://api.github.com/repos/iojs/io.js/issues/comments/71990850","html_url":"https://github.com/iojs/io.js/issues/583#issuecomment-71990850","issue_url":"https://api.github.com/repos/iojs/io.js/issues/583","id":71990850,"user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T09:01:55Z","updated_at":"2015-01-29T09:01:55Z","body":"@vkurchatkin same reason `throw` isn't."}}