{"action":"created","comment":{"url":"https://api.github.com/repos/aws/aws-sdk-java/pulls/comments/80235481","id":80235481,"diff_hunk":"@@ -197,7 +196,15 @@ private void downloadInParallel(int partCount) throws Exception {\n      * Merges all the individual part Files into dstFile\n      */\n     private void combineFiles() throws Exception {\n-        truncateDestinationFileIfNecessary();\n+        final File parentDirectory = dstfile.getParentFile();\n+        if (parentDirectory == null || parentDirectory.exists()) {\n+            truncateDestinationFileIfNecessary();\n+        } else {\n+            if (!parentDirectory.mkdirs()) {\n+                throw new AmazonClientException(\"Unable to create directory in the path\" + parentDirectory.getAbsolutePath());","path":"aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/DownloadCallable.java","position":18,"original_position":18,"commit_id":"091855543a78ae9450a913d01dd9b96e47a663d8","original_commit_id":"091855543a78ae9450a913d01dd9b96e47a663d8","user":{"login":"drainx","id":5074318,"avatar_url":"https://avatars.githubusercontent.com/u/5074318?v=3","gravatar_id":"","url":"https://api.github.com/users/drainx","html_url":"https://github.com/drainx","followers_url":"https://api.github.com/users/drainx/followers","following_url":"https://api.github.com/users/drainx/following{/other_user}","gists_url":"https://api.github.com/users/drainx/gists{/gist_id}","starred_url":"https://api.github.com/users/drainx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drainx/subscriptions","organizations_url":"https://api.github.com/users/drainx/orgs","repos_url":"https://api.github.com/users/drainx/repos","events_url":"https://api.github.com/users/drainx/events{/privacy}","received_events_url":"https://api.github.com/users/drainx/received_events","type":"User","site_admin":false},"body":"Space or \": \" needed in exception message","created_at":"2016-09-23T12:35:17Z","updated_at":"2016-09-23T12:35:17Z","html_url":"https://github.com/aws/aws-sdk-java/pull/854#discussion_r80235481","pull_request_url":"https://api.github.com/repos/aws/aws-sdk-java/pulls/854","_links":{"self":{"href":"https://api.github.com/repos/aws/aws-sdk-java/pulls/comments/80235481"},"html":{"href":"https://github.com/aws/aws-sdk-java/pull/854#discussion_r80235481"},"pull_request":{"href":"https://api.github.com/repos/aws/aws-sdk-java/pulls/854"}}},"pull_request":{"url":"https://api.github.com/repos/aws/aws-sdk-java/pulls/854","id":86488028,"html_url":"https://github.com/aws/aws-sdk-java/pull/854","diff_url":"https://github.com/aws/aws-sdk-java/pull/854.diff","patch_url":"https://github.com/aws/aws-sdk-java/pull/854.patch","issue_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/854","number":854,"state":"open","locked":false,"title":"create parent dir also in parallel downloads, fixes #853","user":{"login":"pbruski","id":737454,"avatar_url":"https://avatars.githubusercontent.com/u/737454?v=3","gravatar_id":"","url":"https://api.github.com/users/pbruski","html_url":"https://github.com/pbruski","followers_url":"https://api.github.com/users/pbruski/followers","following_url":"https://api.github.com/users/pbruski/following{/other_user}","gists_url":"https://api.github.com/users/pbruski/gists{/gist_id}","starred_url":"https://api.github.com/users/pbruski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbruski/subscriptions","organizations_url":"https://api.github.com/users/pbruski/orgs","repos_url":"https://api.github.com/users/pbruski/repos","events_url":"https://api.github.com/users/pbruski/events{/privacy}","received_events_url":"https://api.github.com/users/pbruski/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-23T10:19:38Z","updated_at":"2016-09-23T12:40:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"370b740138b012b1d5c8ad7f3d853df8fb8cfa88","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aws/aws-sdk-java/pulls/854/commits","review_comments_url":"https://api.github.com/repos/aws/aws-sdk-java/pulls/854/comments","review_comment_url":"https://api.github.com/repos/aws/aws-sdk-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/854/comments","statuses_url":"https://api.github.com/repos/aws/aws-sdk-java/statuses/091855543a78ae9450a913d01dd9b96e47a663d8","head":{"label":"pbruski:create-parent-dir-in-parallel-downloads","ref":"create-parent-dir-in-parallel-downloads","sha":"091855543a78ae9450a913d01dd9b96e47a663d8","user":{"login":"pbruski","id":737454,"avatar_url":"https://avatars.githubusercontent.com/u/737454?v=3","gravatar_id":"","url":"https://api.github.com/users/pbruski","html_url":"https://github.com/pbruski","followers_url":"https://api.github.com/users/pbruski/followers","following_url":"https://api.github.com/users/pbruski/following{/other_user}","gists_url":"https://api.github.com/users/pbruski/gists{/gist_id}","starred_url":"https://api.github.com/users/pbruski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbruski/subscriptions","organizations_url":"https://api.github.com/users/pbruski/orgs","repos_url":"https://api.github.com/users/pbruski/repos","events_url":"https://api.github.com/users/pbruski/events{/privacy}","received_events_url":"https://api.github.com/users/pbruski/received_events","type":"User","site_admin":false},"repo":{"id":69010786,"name":"aws-sdk-java","full_name":"pbruski/aws-sdk-java","owner":{"login":"pbruski","id":737454,"avatar_url":"https://avatars.githubusercontent.com/u/737454?v=3","gravatar_id":"","url":"https://api.github.com/users/pbruski","html_url":"https://github.com/pbruski","followers_url":"https://api.github.com/users/pbruski/followers","following_url":"https://api.github.com/users/pbruski/following{/other_user}","gists_url":"https://api.github.com/users/pbruski/gists{/gist_id}","starred_url":"https://api.github.com/users/pbruski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbruski/subscriptions","organizations_url":"https://api.github.com/users/pbruski/orgs","repos_url":"https://api.github.com/users/pbruski/repos","events_url":"https://api.github.com/users/pbruski/events{/privacy}","received_events_url":"https://api.github.com/users/pbruski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pbruski/aws-sdk-java","description":"The official AWS SDK for Java.","fork":true,"url":"https://api.github.com/repos/pbruski/aws-sdk-java","forks_url":"https://api.github.com/repos/pbruski/aws-sdk-java/forks","keys_url":"https://api.github.com/repos/pbruski/aws-sdk-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pbruski/aws-sdk-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pbruski/aws-sdk-java/teams","hooks_url":"https://api.github.com/repos/pbruski/aws-sdk-java/hooks","issue_events_url":"https://api.github.com/repos/pbruski/aws-sdk-java/issues/events{/number}","events_url":"https://api.github.com/repos/pbruski/aws-sdk-java/events","assignees_url":"https://api.github.com/repos/pbruski/aws-sdk-java/assignees{/user}","branches_url":"https://api.github.com/repos/pbruski/aws-sdk-java/branches{/branch}","tags_url":"https://api.github.com/repos/pbruski/aws-sdk-java/tags","blobs_url":"https://api.github.com/repos/pbruski/aws-sdk-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pbruski/aws-sdk-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pbruski/aws-sdk-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/pbruski/aws-sdk-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pbruski/aws-sdk-java/statuses/{sha}","languages_url":"https://api.github.com/repos/pbruski/aws-sdk-java/languages","stargazers_url":"https://api.github.com/repos/pbruski/aws-sdk-java/stargazers","contributors_url":"https://api.github.com/repos/pbruski/aws-sdk-java/contributors","subscribers_url":"https://api.github.com/repos/pbruski/aws-sdk-java/subscribers","subscription_url":"https://api.github.com/repos/pbruski/aws-sdk-java/subscription","commits_url":"https://api.github.com/repos/pbruski/aws-sdk-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/pbruski/aws-sdk-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/pbruski/aws-sdk-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/pbruski/aws-sdk-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/pbruski/aws-sdk-java/contents/{+path}","compare_url":"https://api.github.com/repos/pbruski/aws-sdk-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pbruski/aws-sdk-java/merges","archive_url":"https://api.github.com/repos/pbruski/aws-sdk-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pbruski/aws-sdk-java/downloads","issues_url":"https://api.github.com/repos/pbruski/aws-sdk-java/issues{/number}","pulls_url":"https://api.github.com/repos/pbruski/aws-sdk-java/pulls{/number}","milestones_url":"https://api.github.com/repos/pbruski/aws-sdk-java/milestones{/number}","notifications_url":"https://api.github.com/repos/pbruski/aws-sdk-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pbruski/aws-sdk-java/labels{/name}","releases_url":"https://api.github.com/repos/pbruski/aws-sdk-java/releases{/id}","deployments_url":"https://api.github.com/repos/pbruski/aws-sdk-java/deployments","created_at":"2016-09-23T09:33:11Z","updated_at":"2016-09-23T09:34:10Z","pushed_at":"2016-09-23T10:18:22Z","git_url":"git://github.com/pbruski/aws-sdk-java.git","ssh_url":"git@github.com:pbruski/aws-sdk-java.git","clone_url":"https://github.com/pbruski/aws-sdk-java.git","svn_url":"https://github.com/pbruski/aws-sdk-java","homepage":"https://aws.amazon.com/sdkforjava","size":453094,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aws:master","ref":"master","sha":"9e6b7d630b6a7d864f36f74b1b60604224bc8a59","user":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"repo":{"id":574877,"name":"aws-sdk-java","full_name":"aws/aws-sdk-java","owner":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aws/aws-sdk-java","description":"The official AWS SDK for Java.","fork":false,"url":"https://api.github.com/repos/aws/aws-sdk-java","forks_url":"https://api.github.com/repos/aws/aws-sdk-java/forks","keys_url":"https://api.github.com/repos/aws/aws-sdk-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aws/aws-sdk-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aws/aws-sdk-java/teams","hooks_url":"https://api.github.com/repos/aws/aws-sdk-java/hooks","issue_events_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/events{/number}","events_url":"https://api.github.com/repos/aws/aws-sdk-java/events","assignees_url":"https://api.github.com/repos/aws/aws-sdk-java/assignees{/user}","branches_url":"https://api.github.com/repos/aws/aws-sdk-java/branches{/branch}","tags_url":"https://api.github.com/repos/aws/aws-sdk-java/tags","blobs_url":"https://api.github.com/repos/aws/aws-sdk-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aws/aws-sdk-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aws/aws-sdk-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/aws/aws-sdk-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aws/aws-sdk-java/statuses/{sha}","languages_url":"https://api.github.com/repos/aws/aws-sdk-java/languages","stargazers_url":"https://api.github.com/repos/aws/aws-sdk-java/stargazers","contributors_url":"https://api.github.com/repos/aws/aws-sdk-java/contributors","subscribers_url":"https://api.github.com/repos/aws/aws-sdk-java/subscribers","subscription_url":"https://api.github.com/repos/aws/aws-sdk-java/subscription","commits_url":"https://api.github.com/repos/aws/aws-sdk-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/aws/aws-sdk-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/aws/aws-sdk-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/aws/aws-sdk-java/contents/{+path}","compare_url":"https://api.github.com/repos/aws/aws-sdk-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aws/aws-sdk-java/merges","archive_url":"https://api.github.com/repos/aws/aws-sdk-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aws/aws-sdk-java/downloads","issues_url":"https://api.github.com/repos/aws/aws-sdk-java/issues{/number}","pulls_url":"https://api.github.com/repos/aws/aws-sdk-java/pulls{/number}","milestones_url":"https://api.github.com/repos/aws/aws-sdk-java/milestones{/number}","notifications_url":"https://api.github.com/repos/aws/aws-sdk-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aws/aws-sdk-java/labels{/name}","releases_url":"https://api.github.com/repos/aws/aws-sdk-java/releases{/id}","deployments_url":"https://api.github.com/repos/aws/aws-sdk-java/deployments","created_at":"2010-03-22T23:34:58Z","updated_at":"2016-09-23T10:57:23Z","pushed_at":"2016-09-23T10:19:38Z","git_url":"git://github.com/aws/aws-sdk-java.git","ssh_url":"git@github.com:aws/aws-sdk-java.git","clone_url":"https://github.com/aws/aws-sdk-java.git","svn_url":"https://github.com/aws/aws-sdk-java","homepage":"https://aws.amazon.com/sdkforjava","size":454761,"stargazers_count":1593,"watchers_count":1593,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1160,"mirror_url":null,"open_issues_count":44,"forks":1160,"open_issues":44,"watchers":1593,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aws/aws-sdk-java/pulls/854"},"html":{"href":"https://github.com/aws/aws-sdk-java/pull/854"},"issue":{"href":"https://api.github.com/repos/aws/aws-sdk-java/issues/854"},"comments":{"href":"https://api.github.com/repos/aws/aws-sdk-java/issues/854/comments"},"review_comments":{"href":"https://api.github.com/repos/aws/aws-sdk-java/pulls/854/comments"},"review_comment":{"href":"https://api.github.com/repos/aws/aws-sdk-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aws/aws-sdk-java/pulls/854/commits"},"statuses":{"href":"https://api.github.com/repos/aws/aws-sdk-java/statuses/091855543a78ae9450a913d01dd9b96e47a663d8"}}}}
{"actor":{"display_login":"drainx"}}