{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-dotnet/issues/17","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-dotnet/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-dotnet/issues/17/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-dotnet/issues/17/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-dotnet/issues/17","id":119199868,"number":17,"title":"Should ListObjects calls all have prefix as a regular parameter?","user":{"login":"jskeet","id":17011,"avatar_url":"https://avatars.githubusercontent.com/u/17011?v=3","gravatar_id":"","url":"https://api.github.com/users/jskeet","html_url":"https://github.com/jskeet","followers_url":"https://api.github.com/users/jskeet/followers","following_url":"https://api.github.com/users/jskeet/following{/other_user}","gists_url":"https://api.github.com/users/jskeet/gists{/gist_id}","starred_url":"https://api.github.com/users/jskeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jskeet/subscriptions","organizations_url":"https://api.github.com/users/jskeet/orgs","repos_url":"https://api.github.com/users/jskeet/repos","events_url":"https://api.github.com/users/jskeet/events{/privacy}","received_events_url":"https://api.github.com/users/jskeet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-dotnet/labels/discussion","name":"discussion","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-27T13:54:24Z","updated_at":"2015-12-01T14:08:23Z","closed_at":null,"body":"Currently, if you want to perform a prefix search on ListObjects, you have to use the overload which accepts a `ListObjectsOptions`. If prefix searches are the dominant case, we may want to make it a regular parameter (like `bucket`).\r\n\r\nThat would be inconsistent with `ListBuckets`, but maybe that's okay. We'd need to allow a prefix of `null` for \"don't do a prefix search\"."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-dotnet/issues/comments/160979160","html_url":"https://github.com/GoogleCloudPlatform/gcloud-dotnet/issues/17#issuecomment-160979160","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-dotnet/issues/17","id":160979160,"user":{"login":"ivannaranjo","id":9807532,"avatar_url":"https://avatars.githubusercontent.com/u/9807532?v=3","gravatar_id":"","url":"https://api.github.com/users/ivannaranjo","html_url":"https://github.com/ivannaranjo","followers_url":"https://api.github.com/users/ivannaranjo/followers","following_url":"https://api.github.com/users/ivannaranjo/following{/other_user}","gists_url":"https://api.github.com/users/ivannaranjo/gists{/gist_id}","starred_url":"https://api.github.com/users/ivannaranjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivannaranjo/subscriptions","organizations_url":"https://api.github.com/users/ivannaranjo/orgs","repos_url":"https://api.github.com/users/ivannaranjo/repos","events_url":"https://api.github.com/users/ivannaranjo/events{/privacy}","received_events_url":"https://api.github.com/users/ivannaranjo/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T14:08:23Z","updated_at":"2015-12-01T14:08:23Z","body":"Definitely we should have a parameter for the prefix, I believe that listing all files in the bucket is not the common pattern, one goes directly to the _directory_ for a user, post, etc... to fetch the objects/blobs under there. A bucket might contain thousands upon thousands of files so the hierarchical organization allowed by the prefixes is going to be exploited. "}}