{"action":"created","comment":{"url":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/comments/54944814","id":54944814,"diff_hunk":"@@ -240,3 +240,15 @@ function ascii(ftp::FTP)\n     end\n \n end\n+\n+function ftp(code::Function;\n+    host::AbstractString=\"\", implicit::Bool=false, ssl::Bool=false,\n+    verify::Bool=true, active::Bool=false, user::AbstractString=\"\", pswd::AbstractString=\"\" )\n+    ftp_init()\n+    ftp_client = FTP(;host=host, implicit=implicit, ssl=ssl, verify=verify, active=active, user=user, pswd=pswd)\n+\n+    code(ftp_client)\n+\n+    close(ftp_client)\n+    ftp_cleanup()","path":"src/FTPObject.jl","position":14,"original_position":14,"commit_id":"da43559713fe358c0c46878df7c967f1472e3caf","original_commit_id":"da43559713fe358c0c46878df7c967f1472e3caf","user":{"login":"omus","id":1675958,"avatar_url":"https://avatars.githubusercontent.com/u/1675958?v=3","gravatar_id":"","url":"https://api.github.com/users/omus","html_url":"https://github.com/omus","followers_url":"https://api.github.com/users/omus/followers","following_url":"https://api.github.com/users/omus/following{/other_user}","gists_url":"https://api.github.com/users/omus/gists{/gist_id}","starred_url":"https://api.github.com/users/omus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omus/subscriptions","organizations_url":"https://api.github.com/users/omus/orgs","repos_url":"https://api.github.com/users/omus/repos","events_url":"https://api.github.com/users/omus/events{/privacy}","received_events_url":"https://api.github.com/users/omus/received_events","type":"User","site_admin":false},"body":"`code` should be wrapped in a try/catch","created_at":"2016-03-03T20:40:09Z","updated_at":"2016-03-03T20:40:09Z","html_url":"https://github.com/invenia/FTPClient.jl/pull/26#discussion_r54944814","pull_request_url":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/comments/54944814"},"html":{"href":"https://github.com/invenia/FTPClient.jl/pull/26#discussion_r54944814"},"pull_request":{"href":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/26","id":61590365,"html_url":"https://github.com/invenia/FTPClient.jl/pull/26","diff_url":"https://github.com/invenia/FTPClient.jl/pull/26.diff","patch_url":"https://github.com/invenia/FTPClient.jl/pull/26.patch","issue_url":"https://api.github.com/repos/invenia/FTPClient.jl/issues/26","number":26,"state":"open","locked":false,"title":"Added ftp() do ftp end so that users don't have to start/stop the ftp…","user":{"login":"samuel-massinon-invenia","id":12241720,"avatar_url":"https://avatars.githubusercontent.com/u/12241720?v=3","gravatar_id":"","url":"https://api.github.com/users/samuel-massinon-invenia","html_url":"https://github.com/samuel-massinon-invenia","followers_url":"https://api.github.com/users/samuel-massinon-invenia/followers","following_url":"https://api.github.com/users/samuel-massinon-invenia/following{/other_user}","gists_url":"https://api.github.com/users/samuel-massinon-invenia/gists{/gist_id}","starred_url":"https://api.github.com/users/samuel-massinon-invenia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuel-massinon-invenia/subscriptions","organizations_url":"https://api.github.com/users/samuel-massinon-invenia/orgs","repos_url":"https://api.github.com/users/samuel-massinon-invenia/repos","events_url":"https://api.github.com/users/samuel-massinon-invenia/events{/privacy}","received_events_url":"https://api.github.com/users/samuel-massinon-invenia/received_events","type":"User","site_admin":false},"body":"… client\r\n\r\n@omus Ready to review","created_at":"2016-03-03T16:58:43Z","updated_at":"2016-03-03T20:40:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92727688d80fd1b4c77629fc6fa54d54a4d97cad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/26/commits","review_comments_url":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/26/comments","review_comment_url":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/invenia/FTPClient.jl/issues/26/comments","statuses_url":"https://api.github.com/repos/invenia/FTPClient.jl/statuses/da43559713fe358c0c46878df7c967f1472e3caf","head":{"label":"invenia:ftp_do_end","ref":"ftp_do_end","sha":"da43559713fe358c0c46878df7c967f1472e3caf","user":{"login":"invenia","id":5262440,"avatar_url":"https://avatars.githubusercontent.com/u/5262440?v=3","gravatar_id":"","url":"https://api.github.com/users/invenia","html_url":"https://github.com/invenia","followers_url":"https://api.github.com/users/invenia/followers","following_url":"https://api.github.com/users/invenia/following{/other_user}","gists_url":"https://api.github.com/users/invenia/gists{/gist_id}","starred_url":"https://api.github.com/users/invenia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/invenia/subscriptions","organizations_url":"https://api.github.com/users/invenia/orgs","repos_url":"https://api.github.com/users/invenia/repos","events_url":"https://api.github.com/users/invenia/events{/privacy}","received_events_url":"https://api.github.com/users/invenia/received_events","type":"Organization","site_admin":false},"repo":{"id":38510098,"name":"FTPClient.jl","full_name":"invenia/FTPClient.jl","owner":{"login":"invenia","id":5262440,"avatar_url":"https://avatars.githubusercontent.com/u/5262440?v=3","gravatar_id":"","url":"https://api.github.com/users/invenia","html_url":"https://github.com/invenia","followers_url":"https://api.github.com/users/invenia/followers","following_url":"https://api.github.com/users/invenia/following{/other_user}","gists_url":"https://api.github.com/users/invenia/gists{/gist_id}","starred_url":"https://api.github.com/users/invenia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/invenia/subscriptions","organizations_url":"https://api.github.com/users/invenia/orgs","repos_url":"https://api.github.com/users/invenia/repos","events_url":"https://api.github.com/users/invenia/events{/privacy}","received_events_url":"https://api.github.com/users/invenia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/invenia/FTPClient.jl","description":"Julia FTP client using LibCURL.jl","fork":false,"url":"https://api.github.com/repos/invenia/FTPClient.jl","forks_url":"https://api.github.com/repos/invenia/FTPClient.jl/forks","keys_url":"https://api.github.com/repos/invenia/FTPClient.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/invenia/FTPClient.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/invenia/FTPClient.jl/teams","hooks_url":"https://api.github.com/repos/invenia/FTPClient.jl/hooks","issue_events_url":"https://api.github.com/repos/invenia/FTPClient.jl/issues/events{/number}","events_url":"https://api.github.com/repos/invenia/FTPClient.jl/events","assignees_url":"https://api.github.com/repos/invenia/FTPClient.jl/assignees{/user}","branches_url":"https://api.github.com/repos/invenia/FTPClient.jl/branches{/branch}","tags_url":"https://api.github.com/repos/invenia/FTPClient.jl/tags","blobs_url":"https://api.github.com/repos/invenia/FTPClient.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/invenia/FTPClient.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/invenia/FTPClient.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/invenia/FTPClient.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/invenia/FTPClient.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/invenia/FTPClient.jl/languages","stargazers_url":"https://api.github.com/repos/invenia/FTPClient.jl/stargazers","contributors_url":"https://api.github.com/repos/invenia/FTPClient.jl/contributors","subscribers_url":"https://api.github.com/repos/invenia/FTPClient.jl/subscribers","subscription_url":"https://api.github.com/repos/invenia/FTPClient.jl/subscription","commits_url":"https://api.github.com/repos/invenia/FTPClient.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/invenia/FTPClient.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/invenia/FTPClient.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/invenia/FTPClient.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/invenia/FTPClient.jl/contents/{+path}","compare_url":"https://api.github.com/repos/invenia/FTPClient.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/invenia/FTPClient.jl/merges","archive_url":"https://api.github.com/repos/invenia/FTPClient.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/invenia/FTPClient.jl/downloads","issues_url":"https://api.github.com/repos/invenia/FTPClient.jl/issues{/number}","pulls_url":"https://api.github.com/repos/invenia/FTPClient.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/invenia/FTPClient.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/invenia/FTPClient.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/invenia/FTPClient.jl/labels{/name}","releases_url":"https://api.github.com/repos/invenia/FTPClient.jl/releases{/id}","deployments_url":"https://api.github.com/repos/invenia/FTPClient.jl/deployments","created_at":"2015-07-03T20:50:52Z","updated_at":"2016-02-07T01:52:16Z","pushed_at":"2016-03-03T20:27:55Z","git_url":"git://github.com/invenia/FTPClient.jl.git","ssh_url":"git@github.com:invenia/FTPClient.jl.git","clone_url":"https://github.com/invenia/FTPClient.jl.git","svn_url":"https://github.com/invenia/FTPClient.jl","homepage":"","size":5889,"stargazers_count":2,"watchers_count":2,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"invenia:master","ref":"master","sha":"f56b916a5bbb932c079c2d57415e225dfc28066f","user":{"login":"invenia","id":5262440,"avatar_url":"https://avatars.githubusercontent.com/u/5262440?v=3","gravatar_id":"","url":"https://api.github.com/users/invenia","html_url":"https://github.com/invenia","followers_url":"https://api.github.com/users/invenia/followers","following_url":"https://api.github.com/users/invenia/following{/other_user}","gists_url":"https://api.github.com/users/invenia/gists{/gist_id}","starred_url":"https://api.github.com/users/invenia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/invenia/subscriptions","organizations_url":"https://api.github.com/users/invenia/orgs","repos_url":"https://api.github.com/users/invenia/repos","events_url":"https://api.github.com/users/invenia/events{/privacy}","received_events_url":"https://api.github.com/users/invenia/received_events","type":"Organization","site_admin":false},"repo":{"id":38510098,"name":"FTPClient.jl","full_name":"invenia/FTPClient.jl","owner":{"login":"invenia","id":5262440,"avatar_url":"https://avatars.githubusercontent.com/u/5262440?v=3","gravatar_id":"","url":"https://api.github.com/users/invenia","html_url":"https://github.com/invenia","followers_url":"https://api.github.com/users/invenia/followers","following_url":"https://api.github.com/users/invenia/following{/other_user}","gists_url":"https://api.github.com/users/invenia/gists{/gist_id}","starred_url":"https://api.github.com/users/invenia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/invenia/subscriptions","organizations_url":"https://api.github.com/users/invenia/orgs","repos_url":"https://api.github.com/users/invenia/repos","events_url":"https://api.github.com/users/invenia/events{/privacy}","received_events_url":"https://api.github.com/users/invenia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/invenia/FTPClient.jl","description":"Julia FTP client using LibCURL.jl","fork":false,"url":"https://api.github.com/repos/invenia/FTPClient.jl","forks_url":"https://api.github.com/repos/invenia/FTPClient.jl/forks","keys_url":"https://api.github.com/repos/invenia/FTPClient.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/invenia/FTPClient.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/invenia/FTPClient.jl/teams","hooks_url":"https://api.github.com/repos/invenia/FTPClient.jl/hooks","issue_events_url":"https://api.github.com/repos/invenia/FTPClient.jl/issues/events{/number}","events_url":"https://api.github.com/repos/invenia/FTPClient.jl/events","assignees_url":"https://api.github.com/repos/invenia/FTPClient.jl/assignees{/user}","branches_url":"https://api.github.com/repos/invenia/FTPClient.jl/branches{/branch}","tags_url":"https://api.github.com/repos/invenia/FTPClient.jl/tags","blobs_url":"https://api.github.com/repos/invenia/FTPClient.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/invenia/FTPClient.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/invenia/FTPClient.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/invenia/FTPClient.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/invenia/FTPClient.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/invenia/FTPClient.jl/languages","stargazers_url":"https://api.github.com/repos/invenia/FTPClient.jl/stargazers","contributors_url":"https://api.github.com/repos/invenia/FTPClient.jl/contributors","subscribers_url":"https://api.github.com/repos/invenia/FTPClient.jl/subscribers","subscription_url":"https://api.github.com/repos/invenia/FTPClient.jl/subscription","commits_url":"https://api.github.com/repos/invenia/FTPClient.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/invenia/FTPClient.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/invenia/FTPClient.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/invenia/FTPClient.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/invenia/FTPClient.jl/contents/{+path}","compare_url":"https://api.github.com/repos/invenia/FTPClient.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/invenia/FTPClient.jl/merges","archive_url":"https://api.github.com/repos/invenia/FTPClient.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/invenia/FTPClient.jl/downloads","issues_url":"https://api.github.com/repos/invenia/FTPClient.jl/issues{/number}","pulls_url":"https://api.github.com/repos/invenia/FTPClient.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/invenia/FTPClient.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/invenia/FTPClient.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/invenia/FTPClient.jl/labels{/name}","releases_url":"https://api.github.com/repos/invenia/FTPClient.jl/releases{/id}","deployments_url":"https://api.github.com/repos/invenia/FTPClient.jl/deployments","created_at":"2015-07-03T20:50:52Z","updated_at":"2016-02-07T01:52:16Z","pushed_at":"2016-03-03T20:27:55Z","git_url":"git://github.com/invenia/FTPClient.jl.git","ssh_url":"git@github.com:invenia/FTPClient.jl.git","clone_url":"https://github.com/invenia/FTPClient.jl.git","svn_url":"https://github.com/invenia/FTPClient.jl","homepage":"","size":5889,"stargazers_count":2,"watchers_count":2,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/26"},"html":{"href":"https://github.com/invenia/FTPClient.jl/pull/26"},"issue":{"href":"https://api.github.com/repos/invenia/FTPClient.jl/issues/26"},"comments":{"href":"https://api.github.com/repos/invenia/FTPClient.jl/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/invenia/FTPClient.jl/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/invenia/FTPClient.jl/statuses/da43559713fe358c0c46878df7c967f1472e3caf"}}}}