{"action":"created","comment":{"url":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/comments/25820154","id":25820154,"diff_hunk":"@@ -143,16 +143,31 @@ def get_child_space(self):\n         return protocol_space\n \n     def browse(self, path, *args, **kwargs):\n-        \"\"\" Returns {'directories': [directory], 'entries': [entries]} at path.\n-\n-        `path` is a full path in this space.\n-\n-        'directories' in the return dict is the name of all the directories\n-            located at that path\n-        'entries' in the return dict is the name of any file (directory or other)\n-            located at that path\n-\n-        If not implemented in the child space, looks locally.\n+        \"\"\"\n+        Return information about the objects (files, directories) at `path`.\n+\n+        Attempts to call the child space's implementation.  If not found, falls\n+        back to looking for the path locally.\n+\n+        Returns a dictionary with keys 'entries', 'directories' and 'properties'.\n+\n+        'entries' is a list of strings, one for each entry in that directory, both file-like and folder-like.\n+        'directories' is a list of strings for each folder-like entry. Each entry should also be listed in 'entries'.\n+        'properties' is a dictionary that may contain additional information for the entries.  Keys are the entry name found in 'entries', values are a dictionary containing extra information. 'properties' may not contain all values from 'entries'.","path":"storage_service/locations/models/space.py","position":24,"original_position":24,"commit_id":"7ab01d06d2d552cfd762dfa509172c7eae6ac38a","original_commit_id":"7490b43c9278618e7e4e83411537090b88cab5f8","user":{"login":"mistydemeo","id":780485,"avatar_url":"https://avatars.githubusercontent.com/u/780485?v=3","gravatar_id":"","url":"https://api.github.com/users/mistydemeo","html_url":"https://github.com/mistydemeo","followers_url":"https://api.github.com/users/mistydemeo/followers","following_url":"https://api.github.com/users/mistydemeo/following{/other_user}","gists_url":"https://api.github.com/users/mistydemeo/gists{/gist_id}","starred_url":"https://api.github.com/users/mistydemeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistydemeo/subscriptions","organizations_url":"https://api.github.com/users/mistydemeo/orgs","repos_url":"https://api.github.com/users/mistydemeo/repos","events_url":"https://api.github.com/users/mistydemeo/events{/privacy}","received_events_url":"https://api.github.com/users/mistydemeo/received_events","type":"User","site_admin":false},"body":"Sure, that'd help! I'm looking at this as a consumer of the data later, wanting to know what kind of data is actually going to be available - otherwise I wouldn't be sure what I could do with it.\r\n\r\nIf we could document in the spaces what properties they can provide that would also be helpful!","created_at":"2015-03-04T22:17:39Z","updated_at":"2015-03-04T22:17:39Z","html_url":"https://github.com/artefactual/archivematica-storage-service/pull/64#discussion_r25820154","pull_request_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/comments/25820154"},"html":{"href":"https://github.com/artefactual/archivematica-storage-service/pull/64#discussion_r25820154"},"pull_request":{"href":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/64","id":29490128,"html_url":"https://github.com/artefactual/archivematica-storage-service/pull/64","diff_url":"https://github.com/artefactual/archivematica-storage-service/pull/64.diff","patch_url":"https://github.com/artefactual/archivematica-storage-service/pull/64.patch","issue_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/64","number":64,"state":"open","locked":false,"title":"Browse: Return additional info","user":{"login":"Hwesta","id":3166226,"avatar_url":"https://avatars.githubusercontent.com/u/3166226?v=3","gravatar_id":"","url":"https://api.github.com/users/Hwesta","html_url":"https://github.com/Hwesta","followers_url":"https://api.github.com/users/Hwesta/followers","following_url":"https://api.github.com/users/Hwesta/following{/other_user}","gists_url":"https://api.github.com/users/Hwesta/gists{/gist_id}","starred_url":"https://api.github.com/users/Hwesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hwesta/subscriptions","organizations_url":"https://api.github.com/users/Hwesta/orgs","repos_url":"https://api.github.com/users/Hwesta/repos","events_url":"https://api.github.com/users/Hwesta/events{/privacy}","received_events_url":"https://api.github.com/users/Hwesta/received_events","type":"User","site_admin":false},"body":"Return more information in a 'properties' entry in the browse dict about the browse entries. Currently, returns number of objects in a directory and (for local filesystems) file size.\r\n\r\nrefs #7853","created_at":"2015-02-18T00:02:37Z","updated_at":"2015-03-04T22:17:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"087cf02ce2eea803e5e59f5abe13358351026012","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/64/commits","review_comments_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/64/comments","review_comment_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/64/comments","statuses_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/statuses/7ab01d06d2d552cfd762dfa509172c7eae6ac38a","head":{"label":"artefactual:dev/issue-7853-ss-feedback","ref":"dev/issue-7853-ss-feedback","sha":"7ab01d06d2d552cfd762dfa509172c7eae6ac38a","user":{"login":"artefactual","id":1163545,"avatar_url":"https://avatars.githubusercontent.com/u/1163545?v=3","gravatar_id":"","url":"https://api.github.com/users/artefactual","html_url":"https://github.com/artefactual","followers_url":"https://api.github.com/users/artefactual/followers","following_url":"https://api.github.com/users/artefactual/following{/other_user}","gists_url":"https://api.github.com/users/artefactual/gists{/gist_id}","starred_url":"https://api.github.com/users/artefactual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artefactual/subscriptions","organizations_url":"https://api.github.com/users/artefactual/orgs","repos_url":"https://api.github.com/users/artefactual/repos","events_url":"https://api.github.com/users/artefactual/events{/privacy}","received_events_url":"https://api.github.com/users/artefactual/received_events","type":"Organization","site_admin":false},"repo":{"id":12164369,"name":"archivematica-storage-service","full_name":"artefactual/archivematica-storage-service","owner":{"login":"artefactual","id":1163545,"avatar_url":"https://avatars.githubusercontent.com/u/1163545?v=3","gravatar_id":"","url":"https://api.github.com/users/artefactual","html_url":"https://github.com/artefactual","followers_url":"https://api.github.com/users/artefactual/followers","following_url":"https://api.github.com/users/artefactual/following{/other_user}","gists_url":"https://api.github.com/users/artefactual/gists{/gist_id}","starred_url":"https://api.github.com/users/artefactual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artefactual/subscriptions","organizations_url":"https://api.github.com/users/artefactual/orgs","repos_url":"https://api.github.com/users/artefactual/repos","events_url":"https://api.github.com/users/artefactual/events{/privacy}","received_events_url":"https://api.github.com/users/artefactual/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artefactual/archivematica-storage-service","description":"Archivematica storage service","fork":false,"url":"https://api.github.com/repos/artefactual/archivematica-storage-service","forks_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/forks","keys_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/teams","hooks_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/hooks","issue_events_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/events{/number}","events_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/events","assignees_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/assignees{/user}","branches_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/branches{/branch}","tags_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/tags","blobs_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/statuses/{sha}","languages_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/languages","stargazers_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/stargazers","contributors_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/contributors","subscribers_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/subscribers","subscription_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/subscription","commits_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/contents/{+path}","compare_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/merges","archive_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/downloads","issues_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues{/number}","pulls_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls{/number}","milestones_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/milestones{/number}","notifications_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/labels{/name}","releases_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/releases{/id}","created_at":"2013-08-16T17:41:44Z","updated_at":"2015-02-24T20:06:08Z","pushed_at":"2015-03-04T21:42:18Z","git_url":"git://github.com/artefactual/archivematica-storage-service.git","ssh_url":"git@github.com:artefactual/archivematica-storage-service.git","clone_url":"https://github.com/artefactual/archivematica-storage-service.git","svn_url":"https://github.com/artefactual/archivematica-storage-service","homepage":"http://www.archivematica.org","size":5578,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":9,"forks":4,"open_issues":9,"watchers":2,"default_branch":"stable/0.6.x"}},"base":{"label":"artefactual:qa/0.x","ref":"qa/0.x","sha":"8f110b91a86b670e0fb86e5af2a09ddd98c30eb1","user":{"login":"artefactual","id":1163545,"avatar_url":"https://avatars.githubusercontent.com/u/1163545?v=3","gravatar_id":"","url":"https://api.github.com/users/artefactual","html_url":"https://github.com/artefactual","followers_url":"https://api.github.com/users/artefactual/followers","following_url":"https://api.github.com/users/artefactual/following{/other_user}","gists_url":"https://api.github.com/users/artefactual/gists{/gist_id}","starred_url":"https://api.github.com/users/artefactual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artefactual/subscriptions","organizations_url":"https://api.github.com/users/artefactual/orgs","repos_url":"https://api.github.com/users/artefactual/repos","events_url":"https://api.github.com/users/artefactual/events{/privacy}","received_events_url":"https://api.github.com/users/artefactual/received_events","type":"Organization","site_admin":false},"repo":{"id":12164369,"name":"archivematica-storage-service","full_name":"artefactual/archivematica-storage-service","owner":{"login":"artefactual","id":1163545,"avatar_url":"https://avatars.githubusercontent.com/u/1163545?v=3","gravatar_id":"","url":"https://api.github.com/users/artefactual","html_url":"https://github.com/artefactual","followers_url":"https://api.github.com/users/artefactual/followers","following_url":"https://api.github.com/users/artefactual/following{/other_user}","gists_url":"https://api.github.com/users/artefactual/gists{/gist_id}","starred_url":"https://api.github.com/users/artefactual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artefactual/subscriptions","organizations_url":"https://api.github.com/users/artefactual/orgs","repos_url":"https://api.github.com/users/artefactual/repos","events_url":"https://api.github.com/users/artefactual/events{/privacy}","received_events_url":"https://api.github.com/users/artefactual/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artefactual/archivematica-storage-service","description":"Archivematica storage service","fork":false,"url":"https://api.github.com/repos/artefactual/archivematica-storage-service","forks_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/forks","keys_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/teams","hooks_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/hooks","issue_events_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/events{/number}","events_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/events","assignees_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/assignees{/user}","branches_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/branches{/branch}","tags_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/tags","blobs_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/statuses/{sha}","languages_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/languages","stargazers_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/stargazers","contributors_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/contributors","subscribers_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/subscribers","subscription_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/subscription","commits_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/contents/{+path}","compare_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/merges","archive_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/downloads","issues_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues{/number}","pulls_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls{/number}","milestones_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/milestones{/number}","notifications_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/labels{/name}","releases_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/releases{/id}","created_at":"2013-08-16T17:41:44Z","updated_at":"2015-02-24T20:06:08Z","pushed_at":"2015-03-04T21:42:18Z","git_url":"git://github.com/artefactual/archivematica-storage-service.git","ssh_url":"git@github.com:artefactual/archivematica-storage-service.git","clone_url":"https://github.com/artefactual/archivematica-storage-service.git","svn_url":"https://github.com/artefactual/archivematica-storage-service","homepage":"http://www.archivematica.org","size":5578,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":9,"forks":4,"open_issues":9,"watchers":2,"default_branch":"stable/0.6.x"}},"_links":{"self":{"href":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/64"},"html":{"href":"https://github.com/artefactual/archivematica-storage-service/pull/64"},"issue":{"href":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/64"},"comments":{"href":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/artefactual/archivematica-storage-service/statuses/7ab01d06d2d552cfd762dfa509172c7eae6ac38a"}}}}