{"action":"opened","number":71,"pull_request":{"url":"https://api.github.com/repos/joyent/triton-go/pulls/71","id":157933163,"html_url":"https://github.com/joyent/triton-go/pull/71","diff_url":"https://github.com/joyent/triton-go/pull/71.diff","patch_url":"https://github.com/joyent/triton-go/pull/71.patch","issue_url":"https://api.github.com/repos/joyent/triton-go/issues/71","number":71,"state":"open","locked":false,"title":"storage/directory: Add support for ForceDelete","user":{"login":"stack72","id":227823,"avatar_url":"https://avatars1.githubusercontent.com/u/227823?v=4","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"body":"Fixes #60\r\n\r\nWhen a client wants to delete a directory, but that directory has child objects in it, we can now add\r\na new parameter to `DeleteDirectoryInput` called `ForceDelete` - this is a bool that tells triton-go to\r\nwalk the tree and delete all of the children (directories or objects)\r\n\r\n```\r\nstorage [manta-dir-force-delete●●] % ./forceDelete\r\n2017/12/12 19:17:30 FULL PATH: /stack72_joyent/stor/level1\r\n2017/12/12 19:17:31 Deleting folder path: /stack72_joyent/stor/level1/level2\r\n2017/12/12 19:17:32 Deleting folder path: /stack72_joyent/stor/level1/level2/level3\r\n2017/12/12 19:17:32 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4\r\n2017/12/12 19:17:33 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5\r\n2017/12/12 19:17:34 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5/level6\r\n2017/12/12 19:17:34 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5/level6/level7\r\n2017/12/12 19:17:35 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5/level6/level7/level8\r\n2017/12/12 19:17:36 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5/level6/level7/level8/level9\r\n2017/12/12 19:17:37 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5/level6/level7/level8/level9/level10\r\n2017/12/12 19:17:38 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5/level6/level7/level8/level9/level10/level11\r\n2017/12/12 19:17:39 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5/level6/level7/level8/level9/level10/level11/level12\r\n2017/12/12 19:17:39 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5/level6/level7/level8/level9/level10/level11/level12/level13\r\n2017/12/12 19:17:40 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5/level6/level7/level8/level9/level10/level11/level12/level13/level14\r\n2017/12/12 19:17:41 Deleting folder path: /stack72_joyent/stor/level1/level2/level3/level4/level5/level6/level7/level8/level9/level10/level11/level12/level13/level14/level15\r\n2017/12/12 19:17:42 Deleting object stor/level1/level2/level3/level4/level5/level6/level7/level8/level9/level10/level11/level12/level13/level14/level15/tf.log\r\nSuccessfully deleted all nested objects\r\n```","created_at":"2017-12-12T20:39:18Z","updated_at":"2017-12-12T20:39:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/joyent/triton-go/pulls/71/commits","review_comments_url":"https://api.github.com/repos/joyent/triton-go/pulls/71/comments","review_comment_url":"https://api.github.com/repos/joyent/triton-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joyent/triton-go/issues/71/comments","statuses_url":"https://api.github.com/repos/joyent/triton-go/statuses/583d6ad834b759b3738625baf347a46b1d49a86a","head":{"label":"stack72:manta-dir-force-delete","ref":"manta-dir-force-delete","sha":"583d6ad834b759b3738625baf347a46b1d49a86a","user":{"login":"stack72","id":227823,"avatar_url":"https://avatars1.githubusercontent.com/u/227823?v=4","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"repo":{"id":99919709,"name":"triton-go","full_name":"stack72/triton-go","owner":{"login":"stack72","id":227823,"avatar_url":"https://avatars1.githubusercontent.com/u/227823?v=4","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stack72/triton-go","description":null,"fork":true,"url":"https://api.github.com/repos/stack72/triton-go","forks_url":"https://api.github.com/repos/stack72/triton-go/forks","keys_url":"https://api.github.com/repos/stack72/triton-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stack72/triton-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stack72/triton-go/teams","hooks_url":"https://api.github.com/repos/stack72/triton-go/hooks","issue_events_url":"https://api.github.com/repos/stack72/triton-go/issues/events{/number}","events_url":"https://api.github.com/repos/stack72/triton-go/events","assignees_url":"https://api.github.com/repos/stack72/triton-go/assignees{/user}","branches_url":"https://api.github.com/repos/stack72/triton-go/branches{/branch}","tags_url":"https://api.github.com/repos/stack72/triton-go/tags","blobs_url":"https://api.github.com/repos/stack72/triton-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stack72/triton-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stack72/triton-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/stack72/triton-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stack72/triton-go/statuses/{sha}","languages_url":"https://api.github.com/repos/stack72/triton-go/languages","stargazers_url":"https://api.github.com/repos/stack72/triton-go/stargazers","contributors_url":"https://api.github.com/repos/stack72/triton-go/contributors","subscribers_url":"https://api.github.com/repos/stack72/triton-go/subscribers","subscription_url":"https://api.github.com/repos/stack72/triton-go/subscription","commits_url":"https://api.github.com/repos/stack72/triton-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/stack72/triton-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/stack72/triton-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/stack72/triton-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/stack72/triton-go/contents/{+path}","compare_url":"https://api.github.com/repos/stack72/triton-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stack72/triton-go/merges","archive_url":"https://api.github.com/repos/stack72/triton-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stack72/triton-go/downloads","issues_url":"https://api.github.com/repos/stack72/triton-go/issues{/number}","pulls_url":"https://api.github.com/repos/stack72/triton-go/pulls{/number}","milestones_url":"https://api.github.com/repos/stack72/triton-go/milestones{/number}","notifications_url":"https://api.github.com/repos/stack72/triton-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stack72/triton-go/labels{/name}","releases_url":"https://api.github.com/repos/stack72/triton-go/releases{/id}","deployments_url":"https://api.github.com/repos/stack72/triton-go/deployments","created_at":"2017-08-10T12:18:07Z","updated_at":"2017-08-10T12:18:09Z","pushed_at":"2017-12-12T20:38:37Z","git_url":"git://github.com/stack72/triton-go.git","ssh_url":"git@github.com:stack72/triton-go.git","clone_url":"https://github.com/stack72/triton-go.git","svn_url":"https://github.com/stack72/triton-go","homepage":null,"size":1830,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"joyent:master","ref":"master","sha":"b519eaf447296ec203c97149777be5f26fc205cc","user":{"login":"joyent","id":10161,"avatar_url":"https://avatars0.githubusercontent.com/u/10161?v=4","gravatar_id":"","url":"https://api.github.com/users/joyent","html_url":"https://github.com/joyent","followers_url":"https://api.github.com/users/joyent/followers","following_url":"https://api.github.com/users/joyent/following{/other_user}","gists_url":"https://api.github.com/users/joyent/gists{/gist_id}","starred_url":"https://api.github.com/users/joyent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyent/subscriptions","organizations_url":"https://api.github.com/users/joyent/orgs","repos_url":"https://api.github.com/users/joyent/repos","events_url":"https://api.github.com/users/joyent/events{/privacy}","received_events_url":"https://api.github.com/users/joyent/received_events","type":"Organization","site_admin":false},"repo":{"id":74127677,"name":"triton-go","full_name":"joyent/triton-go","owner":{"login":"joyent","id":10161,"avatar_url":"https://avatars0.githubusercontent.com/u/10161?v=4","gravatar_id":"","url":"https://api.github.com/users/joyent","html_url":"https://github.com/joyent","followers_url":"https://api.github.com/users/joyent/followers","following_url":"https://api.github.com/users/joyent/following{/other_user}","gists_url":"https://api.github.com/users/joyent/gists{/gist_id}","starred_url":"https://api.github.com/users/joyent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyent/subscriptions","organizations_url":"https://api.github.com/users/joyent/orgs","repos_url":"https://api.github.com/users/joyent/repos","events_url":"https://api.github.com/users/joyent/events{/privacy}","received_events_url":"https://api.github.com/users/joyent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joyent/triton-go","description":"Idiomatic Go SDK for Joyent Triton and Triton Object Storage (Manta)","fork":false,"url":"https://api.github.com/repos/joyent/triton-go","forks_url":"https://api.github.com/repos/joyent/triton-go/forks","keys_url":"https://api.github.com/repos/joyent/triton-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joyent/triton-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joyent/triton-go/teams","hooks_url":"https://api.github.com/repos/joyent/triton-go/hooks","issue_events_url":"https://api.github.com/repos/joyent/triton-go/issues/events{/number}","events_url":"https://api.github.com/repos/joyent/triton-go/events","assignees_url":"https://api.github.com/repos/joyent/triton-go/assignees{/user}","branches_url":"https://api.github.com/repos/joyent/triton-go/branches{/branch}","tags_url":"https://api.github.com/repos/joyent/triton-go/tags","blobs_url":"https://api.github.com/repos/joyent/triton-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joyent/triton-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joyent/triton-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/joyent/triton-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joyent/triton-go/statuses/{sha}","languages_url":"https://api.github.com/repos/joyent/triton-go/languages","stargazers_url":"https://api.github.com/repos/joyent/triton-go/stargazers","contributors_url":"https://api.github.com/repos/joyent/triton-go/contributors","subscribers_url":"https://api.github.com/repos/joyent/triton-go/subscribers","subscription_url":"https://api.github.com/repos/joyent/triton-go/subscription","commits_url":"https://api.github.com/repos/joyent/triton-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/joyent/triton-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/joyent/triton-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/joyent/triton-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/joyent/triton-go/contents/{+path}","compare_url":"https://api.github.com/repos/joyent/triton-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joyent/triton-go/merges","archive_url":"https://api.github.com/repos/joyent/triton-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joyent/triton-go/downloads","issues_url":"https://api.github.com/repos/joyent/triton-go/issues{/number}","pulls_url":"https://api.github.com/repos/joyent/triton-go/pulls{/number}","milestones_url":"https://api.github.com/repos/joyent/triton-go/milestones{/number}","notifications_url":"https://api.github.com/repos/joyent/triton-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joyent/triton-go/labels{/name}","releases_url":"https://api.github.com/repos/joyent/triton-go/releases{/id}","deployments_url":"https://api.github.com/repos/joyent/triton-go/deployments","created_at":"2016-11-18T12:26:06Z","updated_at":"2017-11-21T14:32:01Z","pushed_at":"2017-12-11T19:26:52Z","git_url":"git://github.com/joyent/triton-go.git","ssh_url":"git@github.com:joyent/triton-go.git","clone_url":"https://github.com/joyent/triton-go.git","svn_url":"https://github.com/joyent/triton-go","homepage":"","size":1839,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":7,"open_issues":17,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joyent/triton-go/pulls/71"},"html":{"href":"https://github.com/joyent/triton-go/pull/71"},"issue":{"href":"https://api.github.com/repos/joyent/triton-go/issues/71"},"comments":{"href":"https://api.github.com/repos/joyent/triton-go/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/joyent/triton-go/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/joyent/triton-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joyent/triton-go/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/joyent/triton-go/statuses/583d6ad834b759b3738625baf347a46b1d49a86a"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":141,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"stack72"}}