{"action":"created","issue":{"url":"https://api.github.com/repos/defunkt/fakefs/issues/316","labels_url":"https://api.github.com/repos/defunkt/fakefs/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/defunkt/fakefs/issues/316/comments","events_url":"https://api.github.com/repos/defunkt/fakefs/issues/316/events","html_url":"https://github.com/defunkt/fakefs/issues/316","id":111468203,"number":316,"title":"Helper to list all files in the virtual file system","user":{"login":"bootstraponline","id":1173057,"avatar_url":"https://avatars.githubusercontent.com/u/1173057?v=3","gravatar_id":"","url":"https://api.github.com/users/bootstraponline","html_url":"https://github.com/bootstraponline","followers_url":"https://api.github.com/users/bootstraponline/followers","following_url":"https://api.github.com/users/bootstraponline/following{/other_user}","gists_url":"https://api.github.com/users/bootstraponline/gists{/gist_id}","starred_url":"https://api.github.com/users/bootstraponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bootstraponline/subscriptions","organizations_url":"https://api.github.com/users/bootstraponline/orgs","repos_url":"https://api.github.com/users/bootstraponline/repos","events_url":"https://api.github.com/users/bootstraponline/events{/privacy}","received_events_url":"https://api.github.com/users/bootstraponline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T19:03:37Z","updated_at":"2015-11-11T23:32:55Z","closed_at":null,"body":"Is there a better way to list all the files in the FakeFS FileSystem?\r\n\r\n```ruby\r\n# this works but it's messy\r\ndef list_files_in_fakefs\r\n  root      = FakeFS::FileSystem.fs\r\n  dirs      = FakeFS::FileSystem.send(:directories_under, root)\r\n  all_files = dirs.flatten.map(&:entries).flatten.reject { |d| d.class == FakeFS::FakeDir }\r\n  all_files\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/defunkt/fakefs/issues/comments/155943668","html_url":"https://github.com/defunkt/fakefs/issues/316#issuecomment-155943668","issue_url":"https://api.github.com/repos/defunkt/fakefs/issues/316","id":155943668,"user":{"login":"panozzaj","id":51120,"avatar_url":"https://avatars.githubusercontent.com/u/51120?v=3","gravatar_id":"","url":"https://api.github.com/users/panozzaj","html_url":"https://github.com/panozzaj","followers_url":"https://api.github.com/users/panozzaj/followers","following_url":"https://api.github.com/users/panozzaj/following{/other_user}","gists_url":"https://api.github.com/users/panozzaj/gists{/gist_id}","starred_url":"https://api.github.com/users/panozzaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panozzaj/subscriptions","organizations_url":"https://api.github.com/users/panozzaj/orgs","repos_url":"https://api.github.com/users/panozzaj/repos","events_url":"https://api.github.com/users/panozzaj/events{/privacy}","received_events_url":"https://api.github.com/users/panozzaj/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T23:32:55Z","updated_at":"2015-11-11T23:32:55Z","body":"I have been doing something like the following to print out all of the files. You might try this with a map to get a similar result to what you are trying?\r\n\r\n```\r\n  Dir['client/dist/**/*'].each do |f|\r\n    puts \"f: #{f}\"\r\n  end\r\n```"}}