{"action":"created","issue":{"url":"https://api.github.com/repos/fshost/node-dir/issues/30","repository_url":"https://api.github.com/repos/fshost/node-dir","labels_url":"https://api.github.com/repos/fshost/node-dir/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/fshost/node-dir/issues/30/comments","events_url":"https://api.github.com/repos/fshost/node-dir/issues/30/events","html_url":"https://github.com/fshost/node-dir/issues/30","id":157715931,"number":30,"title":"EACCES problem with large directory structure","user":{"login":"Pe-te","id":7301171,"avatar_url":"https://avatars.githubusercontent.com/u/7301171?v=3","gravatar_id":"","url":"https://api.github.com/users/Pe-te","html_url":"https://github.com/Pe-te","followers_url":"https://api.github.com/users/Pe-te/followers","following_url":"https://api.github.com/users/Pe-te/following{/other_user}","gists_url":"https://api.github.com/users/Pe-te/gists{/gist_id}","starred_url":"https://api.github.com/users/Pe-te/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pe-te/subscriptions","organizations_url":"https://api.github.com/users/Pe-te/orgs","repos_url":"https://api.github.com/users/Pe-te/repos","events_url":"https://api.github.com/users/Pe-te/events{/privacy}","received_events_url":"https://api.github.com/users/Pe-te/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-05-31T16:35:06Z","updated_at":"2016-08-27T07:12:57Z","closed_at":"2016-08-27T07:12:57Z","body":"When I run the .files() call with a large directory tree, it starts giving me a lot of the following error:\r\n````\r\n{ [Error: EACCES: permission denied, scandir '/serverpath/www/htdocs/attachments/2015/11/02/21/53/26']\r\n  errno: -13,\r\n  code: 'EACCES',\r\n  syscall: 'scandir',\r\n  path: '/serverpath/www/htdocs/attachments/2015/11/02/21/53/26' }\r\n````\r\nIs there any way to prevent this? The readFilesStream() sounds good, but it opens every file, which I don't want. I just need the file names.\r\n\r\nSystem is a ubuntu machine.\r\n"},"comment":{"url":"https://api.github.com/repos/fshost/node-dir/issues/comments/242901412","html_url":"https://github.com/fshost/node-dir/issues/30#issuecomment-242901412","issue_url":"https://api.github.com/repos/fshost/node-dir/issues/30","id":242901412,"user":{"login":"fshost","id":933038,"avatar_url":"https://avatars.githubusercontent.com/u/933038?v=3","gravatar_id":"","url":"https://api.github.com/users/fshost","html_url":"https://github.com/fshost","followers_url":"https://api.github.com/users/fshost/followers","following_url":"https://api.github.com/users/fshost/following{/other_user}","gists_url":"https://api.github.com/users/fshost/gists{/gist_id}","starred_url":"https://api.github.com/users/fshost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fshost/subscriptions","organizations_url":"https://api.github.com/users/fshost/orgs","repos_url":"https://api.github.com/users/fshost/repos","events_url":"https://api.github.com/users/fshost/events{/privacy}","received_events_url":"https://api.github.com/users/fshost/received_events","type":"User","site_admin":false},"created_at":"2016-08-27T07:12:57Z","updated_at":"2016-08-27T07:12:57Z","body":"Will definitely consider the recursive not-file-opening approach. Could you summarize how you'd like to see that work with node-dir in this thread? The more detail the better.\r\n\r\nIn the meantime I guess I'll close this for now, but am definitely still thinking about your issue. We'll reopen it if we can make some progress."}}
{"actor":{"display_login":"fshost"}}