{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/1ca3a0180e953e56d528a3b5ddb3d6b3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1ca3a0180e953e56d528a3b5ddb3d6b3","url":"https://api.github.com/users/jasonhutchens","login":"jasonhutchens","id":38485},"milestone":null,"updated_at":"2011-11-09T16:03:49Z","labels":[],"assignee":null,"closed_at":null,"comments":3,"url":"https://api.github.com/repos/fog/fog/issues/596","body":"I have a bucket that contains 5000 files. Here's the problem:\r\n\r\n```\r\nconnection = Fog::Storage.new(:provider => 'AWS', ...)\r\ndirectory = connection.directories.get('mybucket')\r\nfiles = []\r\ndirectory.files.each { |f| files << f.key }\r\nputs files.count\r\nfiles = directory.files.map { |f| f.key }\r\nputs files.count\r\n```\r\n\r\nThis outputs:\r\n\r\n```\r\n5000\r\n1000\r\n```\r\n\r\nThis causes [AssetSync](https://github.com/rumblelabs/asset_sync), which calls AWS::Files::map, to fail when there are more than 1000 files in a bucket.","html_url":"https://github.com/fog/fog/issues/596","number":596,"title":"AWS::Files::each not called for Enumerable methods","id":2182601,"created_at":"2011-11-09T03:05:49Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/391f7ae8dd8c10dc323b7fbfe55b71a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"391f7ae8dd8c10dc323b7fbfe55b71a2","url":"https://api.github.com/users/geemus","login":"geemus","id":4138},"updated_at":"2011-11-09T16:03:49Z","url":"https://api.github.com/repos/fog/fog/issues/comments/2682862","body":"I agree that it isn't great.  I guess we could try to implement all enumerable methods (or stop implementing each), but both of those has pretty obvious downsides.  Maybe it just needs to be better documented.","id":2682862,"created_at":"2011-11-09T16:03:49Z"}}