{"action":"opened","number":28,"pull_request":{"url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/pulls/28","id":41663896,"html_url":"https://github.com/pywebhdfs/pywebhdfs/pull/28","diff_url":"https://github.com/pywebhdfs/pywebhdfs/pull/28.diff","patch_url":"https://github.com/pywebhdfs/pywebhdfs/pull/28.patch","issue_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/28","number":28,"state":"open","locked":false,"title":"added exists_file_dir","user":{"login":"bm371613","id":3083638,"avatar_url":"https://avatars.githubusercontent.com/u/3083638?v=3","gravatar_id":"","url":"https://api.github.com/users/bm371613","html_url":"https://github.com/bm371613","followers_url":"https://api.github.com/users/bm371613/followers","following_url":"https://api.github.com/users/bm371613/following{/other_user}","gists_url":"https://api.github.com/users/bm371613/gists{/gist_id}","starred_url":"https://api.github.com/users/bm371613/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bm371613/subscriptions","organizations_url":"https://api.github.com/users/bm371613/orgs","repos_url":"https://api.github.com/users/bm371613/repos","events_url":"https://api.github.com/users/bm371613/events{/privacy}","received_events_url":"https://api.github.com/users/bm371613/received_events","type":"User","site_admin":false},"body":"I added a convenience method for a common operation, so that the user can write this\r\n\r\n    exists = hdfs.exists_file_dir(path)\r\n\r\ninstead of\r\n\r\n    try:\r\n        hdfs.get_file_dir_status(path)\r\n        exists = True\r\n    except FileNotFound:\r\n        exists = False","created_at":"2015-08-05T10:23:11Z","updated_at":"2015-08-05T10:23:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6164c7f06b912709feb8ffc3fbdc427298379b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/pulls/28/commits","review_comments_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/pulls/28/comments","review_comment_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/28/comments","statuses_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/statuses/0d6447f18c73a76d1b0a533f5d4787edbaa79458","head":{"label":"bm371613:file_exists","ref":"file_exists","sha":"0d6447f18c73a76d1b0a533f5d4787edbaa79458","user":{"login":"bm371613","id":3083638,"avatar_url":"https://avatars.githubusercontent.com/u/3083638?v=3","gravatar_id":"","url":"https://api.github.com/users/bm371613","html_url":"https://github.com/bm371613","followers_url":"https://api.github.com/users/bm371613/followers","following_url":"https://api.github.com/users/bm371613/following{/other_user}","gists_url":"https://api.github.com/users/bm371613/gists{/gist_id}","starred_url":"https://api.github.com/users/bm371613/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bm371613/subscriptions","organizations_url":"https://api.github.com/users/bm371613/orgs","repos_url":"https://api.github.com/users/bm371613/repos","events_url":"https://api.github.com/users/bm371613/events{/privacy}","received_events_url":"https://api.github.com/users/bm371613/received_events","type":"User","site_admin":false},"repo":{"id":40236473,"name":"pywebhdfs","full_name":"bm371613/pywebhdfs","owner":{"login":"bm371613","id":3083638,"avatar_url":"https://avatars.githubusercontent.com/u/3083638?v=3","gravatar_id":"","url":"https://api.github.com/users/bm371613","html_url":"https://github.com/bm371613","followers_url":"https://api.github.com/users/bm371613/followers","following_url":"https://api.github.com/users/bm371613/following{/other_user}","gists_url":"https://api.github.com/users/bm371613/gists{/gist_id}","starred_url":"https://api.github.com/users/bm371613/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bm371613/subscriptions","organizations_url":"https://api.github.com/users/bm371613/orgs","repos_url":"https://api.github.com/users/bm371613/repos","events_url":"https://api.github.com/users/bm371613/events{/privacy}","received_events_url":"https://api.github.com/users/bm371613/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bm371613/pywebhdfs","description":"Pure Python wrapper for the Hadoop WebHDFS Rest API","fork":true,"url":"https://api.github.com/repos/bm371613/pywebhdfs","forks_url":"https://api.github.com/repos/bm371613/pywebhdfs/forks","keys_url":"https://api.github.com/repos/bm371613/pywebhdfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bm371613/pywebhdfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bm371613/pywebhdfs/teams","hooks_url":"https://api.github.com/repos/bm371613/pywebhdfs/hooks","issue_events_url":"https://api.github.com/repos/bm371613/pywebhdfs/issues/events{/number}","events_url":"https://api.github.com/repos/bm371613/pywebhdfs/events","assignees_url":"https://api.github.com/repos/bm371613/pywebhdfs/assignees{/user}","branches_url":"https://api.github.com/repos/bm371613/pywebhdfs/branches{/branch}","tags_url":"https://api.github.com/repos/bm371613/pywebhdfs/tags","blobs_url":"https://api.github.com/repos/bm371613/pywebhdfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bm371613/pywebhdfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bm371613/pywebhdfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/bm371613/pywebhdfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bm371613/pywebhdfs/statuses/{sha}","languages_url":"https://api.github.com/repos/bm371613/pywebhdfs/languages","stargazers_url":"https://api.github.com/repos/bm371613/pywebhdfs/stargazers","contributors_url":"https://api.github.com/repos/bm371613/pywebhdfs/contributors","subscribers_url":"https://api.github.com/repos/bm371613/pywebhdfs/subscribers","subscription_url":"https://api.github.com/repos/bm371613/pywebhdfs/subscription","commits_url":"https://api.github.com/repos/bm371613/pywebhdfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/bm371613/pywebhdfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/bm371613/pywebhdfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/bm371613/pywebhdfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/bm371613/pywebhdfs/contents/{+path}","compare_url":"https://api.github.com/repos/bm371613/pywebhdfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bm371613/pywebhdfs/merges","archive_url":"https://api.github.com/repos/bm371613/pywebhdfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bm371613/pywebhdfs/downloads","issues_url":"https://api.github.com/repos/bm371613/pywebhdfs/issues{/number}","pulls_url":"https://api.github.com/repos/bm371613/pywebhdfs/pulls{/number}","milestones_url":"https://api.github.com/repos/bm371613/pywebhdfs/milestones{/number}","notifications_url":"https://api.github.com/repos/bm371613/pywebhdfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bm371613/pywebhdfs/labels{/name}","releases_url":"https://api.github.com/repos/bm371613/pywebhdfs/releases{/id}","created_at":"2015-08-05T09:23:34Z","updated_at":"2015-08-05T09:23:34Z","pushed_at":"2015-08-05T10:19:43Z","git_url":"git://github.com/bm371613/pywebhdfs.git","ssh_url":"git@github.com:bm371613/pywebhdfs.git","clone_url":"https://github.com/bm371613/pywebhdfs.git","svn_url":"https://github.com/bm371613/pywebhdfs","homepage":"http://pywebhdfs.org","size":396,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pywebhdfs:master","ref":"master","sha":"e3cc58fdc7b7d3c2f13ef26693751ce0e89e02d1","user":{"login":"pywebhdfs","id":11012143,"avatar_url":"https://avatars.githubusercontent.com/u/11012143?v=3","gravatar_id":"","url":"https://api.github.com/users/pywebhdfs","html_url":"https://github.com/pywebhdfs","followers_url":"https://api.github.com/users/pywebhdfs/followers","following_url":"https://api.github.com/users/pywebhdfs/following{/other_user}","gists_url":"https://api.github.com/users/pywebhdfs/gists{/gist_id}","starred_url":"https://api.github.com/users/pywebhdfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pywebhdfs/subscriptions","organizations_url":"https://api.github.com/users/pywebhdfs/orgs","repos_url":"https://api.github.com/users/pywebhdfs/repos","events_url":"https://api.github.com/users/pywebhdfs/events{/privacy}","received_events_url":"https://api.github.com/users/pywebhdfs/received_events","type":"Organization","site_admin":false},"repo":{"id":30815498,"name":"pywebhdfs","full_name":"pywebhdfs/pywebhdfs","owner":{"login":"pywebhdfs","id":11012143,"avatar_url":"https://avatars.githubusercontent.com/u/11012143?v=3","gravatar_id":"","url":"https://api.github.com/users/pywebhdfs","html_url":"https://github.com/pywebhdfs","followers_url":"https://api.github.com/users/pywebhdfs/followers","following_url":"https://api.github.com/users/pywebhdfs/following{/other_user}","gists_url":"https://api.github.com/users/pywebhdfs/gists{/gist_id}","starred_url":"https://api.github.com/users/pywebhdfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pywebhdfs/subscriptions","organizations_url":"https://api.github.com/users/pywebhdfs/orgs","repos_url":"https://api.github.com/users/pywebhdfs/repos","events_url":"https://api.github.com/users/pywebhdfs/events{/privacy}","received_events_url":"https://api.github.com/users/pywebhdfs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pywebhdfs/pywebhdfs","description":"Pure Python wrapper for the Hadoop WebHDFS Rest API","fork":true,"url":"https://api.github.com/repos/pywebhdfs/pywebhdfs","forks_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/forks","keys_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/teams","hooks_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/hooks","issue_events_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/events{/number}","events_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/events","assignees_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/assignees{/user}","branches_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/branches{/branch}","tags_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/tags","blobs_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/statuses/{sha}","languages_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/languages","stargazers_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/stargazers","contributors_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/contributors","subscribers_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/subscribers","subscription_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/subscription","commits_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/contents/{+path}","compare_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/merges","archive_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/downloads","issues_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues{/number}","pulls_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/pulls{/number}","milestones_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/milestones{/number}","notifications_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/labels{/name}","releases_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/releases{/id}","created_at":"2015-02-15T02:24:42Z","updated_at":"2015-07-13T10:55:47Z","pushed_at":"2015-08-05T10:23:12Z","git_url":"git://github.com/pywebhdfs/pywebhdfs.git","ssh_url":"git@github.com:pywebhdfs/pywebhdfs.git","clone_url":"https://github.com/pywebhdfs/pywebhdfs.git","svn_url":"https://github.com/pywebhdfs/pywebhdfs","homepage":"http://pywebhdfs.org","size":396,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pywebhdfs/pywebhdfs/pulls/28"},"html":{"href":"https://github.com/pywebhdfs/pywebhdfs/pull/28"},"issue":{"href":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/28"},"comments":{"href":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/pywebhdfs/pywebhdfs/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/pywebhdfs/pywebhdfs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pywebhdfs/pywebhdfs/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/pywebhdfs/pywebhdfs/statuses/0d6447f18c73a76d1b0a533f5d4787edbaa79458"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":79,"deletions":0,"changed_files":2}}