{"action":"created","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/2961","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/2961/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/2961/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/2961/events","html_url":"https://github.com/nwjs/nw.js/issues/2961","id":54616750,"number":2961,"title":"nwdirectory input returning contents instead of top-level folder as documented","user":{"login":"RickyRomero","id":233891,"avatar_url":"https://avatars.githubusercontent.com/u/233891?v=3","gravatar_id":"","url":"https://api.github.com/users/RickyRomero","html_url":"https://github.com/RickyRomero","followers_url":"https://api.github.com/users/RickyRomero/followers","following_url":"https://api.github.com/users/RickyRomero/following{/other_user}","gists_url":"https://api.github.com/users/RickyRomero/gists{/gist_id}","starred_url":"https://api.github.com/users/RickyRomero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickyRomero/subscriptions","organizations_url":"https://api.github.com/users/RickyRomero/orgs","repos_url":"https://api.github.com/users/RickyRomero/repos","events_url":"https://api.github.com/users/RickyRomero/events{/privacy}","received_events_url":"https://api.github.com/users/RickyRomero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-01-16T19:47:11Z","updated_at":"2015-02-11T07:05:10Z","closed_at":null,"body":"The [documentation](https://github.com/nwjs/nw.js/wiki/File-dialogs#select-directory-node-webkit) for `nwdirectory` file choosers says:\r\n> nwdirectory is a bit similar to webkitdirectory because it let user select a directory too, but it will not enumerate all files under the directory but directly returns the path of directory\r\n\r\nSo, I wrote a little file chooser that's triggered programmatically, but it still enumerates all files:\r\n```javascript\r\nfunction fileChooser()\r\n{\r\n    var chooser = document.createElement('input');\r\n\t\tchooser.setAttribute('type', 'file');\r\n\t\tchooser.setAttribute('nwdirectory', 'true');\r\n\t    chooser.addEventListener('change', function(evt) {\r\n\t\t\tconsole.log(this.value);\r\n\t    }, false);\r\n\r\n\t    chooser.click();\r\n}\r\n```\r\n\r\nOS X v10.10.1, nw.js 0.12.0-alpha1."},"comment":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/comments/73841201","html_url":"https://github.com/nwjs/nw.js/issues/2961#issuecomment-73841201","issue_url":"https://api.github.com/repos/nwjs/nw.js/issues/2961","id":73841201,"user":{"login":"b1rdex","id":312855,"avatar_url":"https://avatars.githubusercontent.com/u/312855?v=3","gravatar_id":"","url":"https://api.github.com/users/b1rdex","html_url":"https://github.com/b1rdex","followers_url":"https://api.github.com/users/b1rdex/followers","following_url":"https://api.github.com/users/b1rdex/following{/other_user}","gists_url":"https://api.github.com/users/b1rdex/gists{/gist_id}","starred_url":"https://api.github.com/users/b1rdex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b1rdex/subscriptions","organizations_url":"https://api.github.com/users/b1rdex/orgs","repos_url":"https://api.github.com/users/b1rdex/repos","events_url":"https://api.github.com/users/b1rdex/events{/privacy}","received_events_url":"https://api.github.com/users/b1rdex/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T07:05:10Z","updated_at":"2015-02-11T07:05:10Z","body":"@GnorTech any news on this?"}}