{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/comments/77995148","id":77995148,"diff_hunk":"@@ -144,43 +105,15 @@ static private void addFolderToZip(String path, String srcFolder, ZipOutputStrea\n         File folder = new File(srcFolder);\n         String fileListArray[] = folder.list();\n         int i = 0;\n-        while (i < fileListArray.length) {\n-            String newPath = folder.getName();\n-            if (!path.equalsIgnoreCase(\"\")) {\n-                newPath = path + File.separator + newPath;\n-            }\n-            addToZip(newPath, srcFolder + File.separator + fileListArray[i], zip);\n-            i++;\n-        }\n-\n-    }\n-\n-    public static void deleteDirectories(File dir) {\n-        File[] children = dir.listFiles();\n-        if (children != null) {\n-            for (File aChildren : children) {\n-                if (aChildren.list() != null && aChildren.list().length > 0) {\n-                    deleteDirectories(aChildren);\n-                } else {\n-                    aChildren.delete();\n+        if (fileListArray != null) {\n+            while (i < fileListArray.length) {\n+                String newPath = folder.getName();\n+                if (!path.equalsIgnoreCase(\"\")) {\n+                    newPath = path + File.separator + newPath;","path":"plugins/org.wso2.developerstudio.humantaskeditor/src/org/wso2/developerstudio/humantaskeditor/wizards/FileManagementUtil.java","position":118,"original_position":118,"commit_id":"00d4fe0d7d7c897b943afca1d32c2db75b1455f1","original_commit_id":"00d4fe0d7d7c897b943afca1d32c2db75b1455f1","user":{"login":"Drifftr","id":3378323,"avatar_url":"https://avatars.githubusercontent.com/u/3378323?v=3","gravatar_id":"","url":"https://api.github.com/users/Drifftr","html_url":"https://github.com/Drifftr","followers_url":"https://api.github.com/users/Drifftr/followers","following_url":"https://api.github.com/users/Drifftr/following{/other_user}","gists_url":"https://api.github.com/users/Drifftr/gists{/gist_id}","starred_url":"https://api.github.com/users/Drifftr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drifftr/subscriptions","organizations_url":"https://api.github.com/users/Drifftr/orgs","repos_url":"https://api.github.com/users/Drifftr/repos","events_url":"https://api.github.com/users/Drifftr/events{/privacy}","received_events_url":"https://api.github.com/users/Drifftr/received_events","type":"User","site_admin":false},"body":"Thanks. Fixed in https://github.com/wso2/devstudio-tooling-bps/pull/30/commits/54abcc8d24b081f392bda8ae8eeff1023aae34a9","created_at":"2016-09-08T12:24:34Z","updated_at":"2016-09-08T12:24:34Z","html_url":"https://github.com/wso2/devstudio-tooling-bps/pull/24#discussion_r77995148","pull_request_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/comments/77995148"},"html":{"href":"https://github.com/wso2/devstudio-tooling-bps/pull/24#discussion_r77995148"},"pull_request":{"href":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/24","id":79494179,"html_url":"https://github.com/wso2/devstudio-tooling-bps/pull/24","diff_url":"https://github.com/wso2/devstudio-tooling-bps/pull/24.diff","patch_url":"https://github.com/wso2/devstudio-tooling-bps/pull/24.patch","issue_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/issues/24","number":24,"state":"closed","locked":false,"title":"Replacing File IO with Commons File Utils","user":{"login":"Drifftr","id":3378323,"avatar_url":"https://avatars.githubusercontent.com/u/3378323?v=3","gravatar_id":"","url":"https://api.github.com/users/Drifftr","html_url":"https://github.com/Drifftr","followers_url":"https://api.github.com/users/Drifftr/followers","following_url":"https://api.github.com/users/Drifftr/following{/other_user}","gists_url":"https://api.github.com/users/Drifftr/gists{/gist_id}","starred_url":"https://api.github.com/users/Drifftr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drifftr/subscriptions","organizations_url":"https://api.github.com/users/Drifftr/orgs","repos_url":"https://api.github.com/users/Drifftr/repos","events_url":"https://api.github.com/users/Drifftr/events{/privacy}","received_events_url":"https://api.github.com/users/Drifftr/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-31T19:55:28Z","updated_at":"2016-09-08T12:24:34Z","closed_at":"2016-08-03T09:19:35Z","merged_at":"2016-08-03T09:19:35Z","merge_commit_sha":"ee4b5215b4d0e618de1753c479759db6987c8b70","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/24/commits","review_comments_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/24/comments","review_comment_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/issues/24/comments","statuses_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/statuses/00d4fe0d7d7c897b943afca1d32c2db75b1455f1","head":{"label":"Drifftr:master","ref":"master","sha":"00d4fe0d7d7c897b943afca1d32c2db75b1455f1","user":{"login":"Drifftr","id":3378323,"avatar_url":"https://avatars.githubusercontent.com/u/3378323?v=3","gravatar_id":"","url":"https://api.github.com/users/Drifftr","html_url":"https://github.com/Drifftr","followers_url":"https://api.github.com/users/Drifftr/followers","following_url":"https://api.github.com/users/Drifftr/following{/other_user}","gists_url":"https://api.github.com/users/Drifftr/gists{/gist_id}","starred_url":"https://api.github.com/users/Drifftr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drifftr/subscriptions","organizations_url":"https://api.github.com/users/Drifftr/orgs","repos_url":"https://api.github.com/users/Drifftr/repos","events_url":"https://api.github.com/users/Drifftr/events{/privacy}","received_events_url":"https://api.github.com/users/Drifftr/received_events","type":"User","site_admin":false},"repo":{"id":53107026,"name":"devstudio-tooling-bps","full_name":"Drifftr/devstudio-tooling-bps","owner":{"login":"Drifftr","id":3378323,"avatar_url":"https://avatars.githubusercontent.com/u/3378323?v=3","gravatar_id":"","url":"https://api.github.com/users/Drifftr","html_url":"https://github.com/Drifftr","followers_url":"https://api.github.com/users/Drifftr/followers","following_url":"https://api.github.com/users/Drifftr/following{/other_user}","gists_url":"https://api.github.com/users/Drifftr/gists{/gist_id}","starred_url":"https://api.github.com/users/Drifftr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drifftr/subscriptions","organizations_url":"https://api.github.com/users/Drifftr/orgs","repos_url":"https://api.github.com/users/Drifftr/repos","events_url":"https://api.github.com/users/Drifftr/events{/privacy}","received_events_url":"https://api.github.com/users/Drifftr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Drifftr/devstudio-tooling-bps","description":"","fork":true,"url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps","forks_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/forks","keys_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/teams","hooks_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/hooks","issue_events_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/issues/events{/number}","events_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/events","assignees_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/assignees{/user}","branches_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/branches{/branch}","tags_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/tags","blobs_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/git/refs{/sha}","trees_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/statuses/{sha}","languages_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/languages","stargazers_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/stargazers","contributors_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/contributors","subscribers_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/subscribers","subscription_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/subscription","commits_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/commits{/sha}","git_commits_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/git/commits{/sha}","comments_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/comments{/number}","issue_comment_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/issues/comments{/number}","contents_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/contents/{+path}","compare_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/merges","archive_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/downloads","issues_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/issues{/number}","pulls_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/pulls{/number}","milestones_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/milestones{/number}","notifications_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/labels{/name}","releases_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/releases{/id}","deployments_url":"https://api.github.com/repos/Drifftr/devstudio-tooling-bps/deployments","created_at":"2016-03-04T04:20:30Z","updated_at":"2016-04-01T10:04:52Z","pushed_at":"2016-09-08T12:22:15Z","git_url":"git://github.com/Drifftr/devstudio-tooling-bps.git","ssh_url":"git@github.com:Drifftr/devstudio-tooling-bps.git","clone_url":"https://github.com/Drifftr/devstudio-tooling-bps.git","svn_url":"https://github.com/Drifftr/devstudio-tooling-bps","homepage":null,"size":103294,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"cf58d28bc6743b7e0549af7537eabe9d42b05882","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":53044989,"name":"devstudio-tooling-bps","full_name":"wso2/devstudio-tooling-bps","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/devstudio-tooling-bps","description":"","fork":false,"url":"https://api.github.com/repos/wso2/devstudio-tooling-bps","forks_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/forks","keys_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/teams","hooks_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/hooks","issue_events_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/events","assignees_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/tags","blobs_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/languages","stargazers_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/stargazers","contributors_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/contributors","subscribers_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/subscribers","subscription_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/subscription","commits_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/merges","archive_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/downloads","issues_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/labels{/name}","releases_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/devstudio-tooling-bps/deployments","created_at":"2016-03-03T11:23:24Z","updated_at":"2016-03-21T08:09:38Z","pushed_at":"2016-09-08T12:23:32Z","git_url":"git://github.com/wso2/devstudio-tooling-bps.git","ssh_url":"git@github.com:wso2/devstudio-tooling-bps.git","clone_url":"https://github.com/wso2/devstudio-tooling-bps.git","svn_url":"https://github.com/wso2/devstudio-tooling-bps","homepage":null,"size":103282,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/24"},"html":{"href":"https://github.com/wso2/devstudio-tooling-bps/pull/24"},"issue":{"href":"https://api.github.com/repos/wso2/devstudio-tooling-bps/issues/24"},"comments":{"href":"https://api.github.com/repos/wso2/devstudio-tooling-bps/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/devstudio-tooling-bps/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/devstudio-tooling-bps/statuses/00d4fe0d7d7c897b943afca1d32c2db75b1455f1"}}}}
{"actor":{"display_login":"Drifftr"}}