{"action":"created","comment":{"url":"https://api.github.com/repos/zar777/exercises/pulls/comments/64669228","id":64669228,"diff_hunk":"@@ -0,0 +1,38 @@\n+import os\n+import sys\n+\n+\"\"\"This method is created to find all files and directories, given a specific path. Optionally, your can use -name flag\n+to search only the files that match to a specific name\"\"\"\n+\n+\n+def find(path, option=None, filename=None):\n+    \"\"\"this method uses a bfs approach to resolve to the problem of finding all files and directories.\"\"\"\n+    if not os.path.exists(path):\n+        return \"Path doesn't exist or wrong: please try again\"\n+    queue = []\n+    queue.append(path)\n+    paths_list = []","path":"projects/find/find.py","position":14,"original_position":14,"commit_id":"07280236cc02c84ce6540c1efbb86a7754c9eaf8","original_commit_id":"07280236cc02c84ce6540c1efbb86a7754c9eaf8","user":{"login":"rvitale","id":351499,"avatar_url":"https://avatars.githubusercontent.com/u/351499?v=3","gravatar_id":"","url":"https://api.github.com/users/rvitale","html_url":"https://github.com/rvitale","followers_url":"https://api.github.com/users/rvitale/followers","following_url":"https://api.github.com/users/rvitale/following{/other_user}","gists_url":"https://api.github.com/users/rvitale/gists{/gist_id}","starred_url":"https://api.github.com/users/rvitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvitale/subscriptions","organizations_url":"https://api.github.com/users/rvitale/orgs","repos_url":"https://api.github.com/users/rvitale/repos","events_url":"https://api.github.com/users/rvitale/events{/privacy}","received_events_url":"https://api.github.com/users/rvitale/received_events","type":"User","site_admin":false},"body":"nit: this should be just `paths`","created_at":"2016-05-25T23:14:59Z","updated_at":"2016-05-25T23:14:59Z","html_url":"https://github.com/zar777/exercises/pull/3#discussion_r64669228","pull_request_url":"https://api.github.com/repos/zar777/exercises/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/zar777/exercises/pulls/comments/64669228"},"html":{"href":"https://github.com/zar777/exercises/pull/3#discussion_r64669228"},"pull_request":{"href":"https://api.github.com/repos/zar777/exercises/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/zar777/exercises/pulls/3","id":71133359,"html_url":"https://github.com/zar777/exercises/pull/3","diff_url":"https://github.com/zar777/exercises/pull/3.diff","patch_url":"https://github.com/zar777/exercises/pull/3.patch","issue_url":"https://api.github.com/repos/zar777/exercises/issues/3","number":3,"state":"open","locked":false,"title":"Find project","user":{"login":"zar777","id":2695741,"avatar_url":"https://avatars.githubusercontent.com/u/2695741?v=3","gravatar_id":"","url":"https://api.github.com/users/zar777","html_url":"https://github.com/zar777","followers_url":"https://api.github.com/users/zar777/followers","following_url":"https://api.github.com/users/zar777/following{/other_user}","gists_url":"https://api.github.com/users/zar777/gists{/gist_id}","starred_url":"https://api.github.com/users/zar777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zar777/subscriptions","organizations_url":"https://api.github.com/users/zar777/orgs","repos_url":"https://api.github.com/users/zar777/repos","events_url":"https://api.github.com/users/zar777/events{/privacy}","received_events_url":"https://api.github.com/users/zar777/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-23T22:51:51Z","updated_at":"2016-05-25T23:14:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"415c107433cb630e43f2634c7b4380d72964d570","assignee":{"login":"llucherini","id":351420,"avatar_url":"https://avatars.githubusercontent.com/u/351420?v=3","gravatar_id":"","url":"https://api.github.com/users/llucherini","html_url":"https://github.com/llucherini","followers_url":"https://api.github.com/users/llucherini/followers","following_url":"https://api.github.com/users/llucherini/following{/other_user}","gists_url":"https://api.github.com/users/llucherini/gists{/gist_id}","starred_url":"https://api.github.com/users/llucherini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llucherini/subscriptions","organizations_url":"https://api.github.com/users/llucherini/orgs","repos_url":"https://api.github.com/users/llucherini/repos","events_url":"https://api.github.com/users/llucherini/events{/privacy}","received_events_url":"https://api.github.com/users/llucherini/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/zar777/exercises/pulls/3/commits","review_comments_url":"https://api.github.com/repos/zar777/exercises/pulls/3/comments","review_comment_url":"https://api.github.com/repos/zar777/exercises/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zar777/exercises/issues/3/comments","statuses_url":"https://api.github.com/repos/zar777/exercises/statuses/07280236cc02c84ce6540c1efbb86a7754c9eaf8","head":{"label":"zar777:find-project","ref":"find-project","sha":"07280236cc02c84ce6540c1efbb86a7754c9eaf8","user":{"login":"zar777","id":2695741,"avatar_url":"https://avatars.githubusercontent.com/u/2695741?v=3","gravatar_id":"","url":"https://api.github.com/users/zar777","html_url":"https://github.com/zar777","followers_url":"https://api.github.com/users/zar777/followers","following_url":"https://api.github.com/users/zar777/following{/other_user}","gists_url":"https://api.github.com/users/zar777/gists{/gist_id}","starred_url":"https://api.github.com/users/zar777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zar777/subscriptions","organizations_url":"https://api.github.com/users/zar777/orgs","repos_url":"https://api.github.com/users/zar777/repos","events_url":"https://api.github.com/users/zar777/events{/privacy}","received_events_url":"https://api.github.com/users/zar777/received_events","type":"User","site_admin":false},"repo":{"id":57226948,"name":"exercises","full_name":"zar777/exercises","owner":{"login":"zar777","id":2695741,"avatar_url":"https://avatars.githubusercontent.com/u/2695741?v=3","gravatar_id":"","url":"https://api.github.com/users/zar777","html_url":"https://github.com/zar777","followers_url":"https://api.github.com/users/zar777/followers","following_url":"https://api.github.com/users/zar777/following{/other_user}","gists_url":"https://api.github.com/users/zar777/gists{/gist_id}","starred_url":"https://api.github.com/users/zar777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zar777/subscriptions","organizations_url":"https://api.github.com/users/zar777/orgs","repos_url":"https://api.github.com/users/zar777/repos","events_url":"https://api.github.com/users/zar777/events{/privacy}","received_events_url":"https://api.github.com/users/zar777/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zar777/exercises","description":"","fork":false,"url":"https://api.github.com/repos/zar777/exercises","forks_url":"https://api.github.com/repos/zar777/exercises/forks","keys_url":"https://api.github.com/repos/zar777/exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zar777/exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zar777/exercises/teams","hooks_url":"https://api.github.com/repos/zar777/exercises/hooks","issue_events_url":"https://api.github.com/repos/zar777/exercises/issues/events{/number}","events_url":"https://api.github.com/repos/zar777/exercises/events","assignees_url":"https://api.github.com/repos/zar777/exercises/assignees{/user}","branches_url":"https://api.github.com/repos/zar777/exercises/branches{/branch}","tags_url":"https://api.github.com/repos/zar777/exercises/tags","blobs_url":"https://api.github.com/repos/zar777/exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zar777/exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zar777/exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/zar777/exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zar777/exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/zar777/exercises/languages","stargazers_url":"https://api.github.com/repos/zar777/exercises/stargazers","contributors_url":"https://api.github.com/repos/zar777/exercises/contributors","subscribers_url":"https://api.github.com/repos/zar777/exercises/subscribers","subscription_url":"https://api.github.com/repos/zar777/exercises/subscription","commits_url":"https://api.github.com/repos/zar777/exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/zar777/exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/zar777/exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/zar777/exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/zar777/exercises/contents/{+path}","compare_url":"https://api.github.com/repos/zar777/exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zar777/exercises/merges","archive_url":"https://api.github.com/repos/zar777/exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zar777/exercises/downloads","issues_url":"https://api.github.com/repos/zar777/exercises/issues{/number}","pulls_url":"https://api.github.com/repos/zar777/exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/zar777/exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/zar777/exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zar777/exercises/labels{/name}","releases_url":"https://api.github.com/repos/zar777/exercises/releases{/id}","deployments_url":"https://api.github.com/repos/zar777/exercises/deployments","created_at":"2016-04-27T16:02:48Z","updated_at":"2016-04-27T16:07:40Z","pushed_at":"2016-05-25T17:27:08Z","git_url":"git://github.com/zar777/exercises.git","ssh_url":"git@github.com:zar777/exercises.git","clone_url":"https://github.com/zar777/exercises.git","svn_url":"https://github.com/zar777/exercises","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"zar777:master","ref":"master","sha":"e1592d9ce96c13b9bc12eed0dfff77a69a8d0177","user":{"login":"zar777","id":2695741,"avatar_url":"https://avatars.githubusercontent.com/u/2695741?v=3","gravatar_id":"","url":"https://api.github.com/users/zar777","html_url":"https://github.com/zar777","followers_url":"https://api.github.com/users/zar777/followers","following_url":"https://api.github.com/users/zar777/following{/other_user}","gists_url":"https://api.github.com/users/zar777/gists{/gist_id}","starred_url":"https://api.github.com/users/zar777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zar777/subscriptions","organizations_url":"https://api.github.com/users/zar777/orgs","repos_url":"https://api.github.com/users/zar777/repos","events_url":"https://api.github.com/users/zar777/events{/privacy}","received_events_url":"https://api.github.com/users/zar777/received_events","type":"User","site_admin":false},"repo":{"id":57226948,"name":"exercises","full_name":"zar777/exercises","owner":{"login":"zar777","id":2695741,"avatar_url":"https://avatars.githubusercontent.com/u/2695741?v=3","gravatar_id":"","url":"https://api.github.com/users/zar777","html_url":"https://github.com/zar777","followers_url":"https://api.github.com/users/zar777/followers","following_url":"https://api.github.com/users/zar777/following{/other_user}","gists_url":"https://api.github.com/users/zar777/gists{/gist_id}","starred_url":"https://api.github.com/users/zar777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zar777/subscriptions","organizations_url":"https://api.github.com/users/zar777/orgs","repos_url":"https://api.github.com/users/zar777/repos","events_url":"https://api.github.com/users/zar777/events{/privacy}","received_events_url":"https://api.github.com/users/zar777/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zar777/exercises","description":"","fork":false,"url":"https://api.github.com/repos/zar777/exercises","forks_url":"https://api.github.com/repos/zar777/exercises/forks","keys_url":"https://api.github.com/repos/zar777/exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zar777/exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zar777/exercises/teams","hooks_url":"https://api.github.com/repos/zar777/exercises/hooks","issue_events_url":"https://api.github.com/repos/zar777/exercises/issues/events{/number}","events_url":"https://api.github.com/repos/zar777/exercises/events","assignees_url":"https://api.github.com/repos/zar777/exercises/assignees{/user}","branches_url":"https://api.github.com/repos/zar777/exercises/branches{/branch}","tags_url":"https://api.github.com/repos/zar777/exercises/tags","blobs_url":"https://api.github.com/repos/zar777/exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zar777/exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zar777/exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/zar777/exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zar777/exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/zar777/exercises/languages","stargazers_url":"https://api.github.com/repos/zar777/exercises/stargazers","contributors_url":"https://api.github.com/repos/zar777/exercises/contributors","subscribers_url":"https://api.github.com/repos/zar777/exercises/subscribers","subscription_url":"https://api.github.com/repos/zar777/exercises/subscription","commits_url":"https://api.github.com/repos/zar777/exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/zar777/exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/zar777/exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/zar777/exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/zar777/exercises/contents/{+path}","compare_url":"https://api.github.com/repos/zar777/exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zar777/exercises/merges","archive_url":"https://api.github.com/repos/zar777/exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zar777/exercises/downloads","issues_url":"https://api.github.com/repos/zar777/exercises/issues{/number}","pulls_url":"https://api.github.com/repos/zar777/exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/zar777/exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/zar777/exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zar777/exercises/labels{/name}","releases_url":"https://api.github.com/repos/zar777/exercises/releases{/id}","deployments_url":"https://api.github.com/repos/zar777/exercises/deployments","created_at":"2016-04-27T16:02:48Z","updated_at":"2016-04-27T16:07:40Z","pushed_at":"2016-05-25T17:27:08Z","git_url":"git://github.com/zar777/exercises.git","ssh_url":"git@github.com:zar777/exercises.git","clone_url":"https://github.com/zar777/exercises.git","svn_url":"https://github.com/zar777/exercises","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zar777/exercises/pulls/3"},"html":{"href":"https://github.com/zar777/exercises/pull/3"},"issue":{"href":"https://api.github.com/repos/zar777/exercises/issues/3"},"comments":{"href":"https://api.github.com/repos/zar777/exercises/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/zar777/exercises/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/zar777/exercises/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zar777/exercises/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/zar777/exercises/statuses/07280236cc02c84ce6540c1efbb86a7754c9eaf8"}}}}
{"actor":{"display_login":"rvitale"}}