{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/3251","repository_url":"https://api.github.com/repos/mitchellh/packer","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/3251/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/3251/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/3251/events","html_url":"https://github.com/mitchellh/packer/issues/3251","id":135656041,"number":3251,"title":"file provisioner is unable to download directory","user":{"login":"ltrifonov","id":15097866,"avatar_url":"https://avatars.githubusercontent.com/u/15097866?v=3","gravatar_id":"","url":"https://api.github.com/users/ltrifonov","html_url":"https://github.com/ltrifonov","followers_url":"https://api.github.com/users/ltrifonov/followers","following_url":"https://api.github.com/users/ltrifonov/following{/other_user}","gists_url":"https://api.github.com/users/ltrifonov/gists{/gist_id}","starred_url":"https://api.github.com/users/ltrifonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltrifonov/subscriptions","organizations_url":"https://api.github.com/users/ltrifonov/orgs","repos_url":"https://api.github.com/users/ltrifonov/repos","events_url":"https://api.github.com/users/ltrifonov/events{/privacy}","received_events_url":"https://api.github.com/users/ltrifonov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/core","name":"core","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-23T07:02:11Z","updated_at":"2016-02-23T09:40:39Z","closed_at":null,"body":"Tried to download a folder form the remote instance locally.\r\nTested all possible combinations `/` on  source/destinations with no luck.\r\nQuick look at the code showed that the code checks for directory on uploads only.\r\n\r\nThe documentation doesn't mention that folder download is not possible?\r\n \r\nI've setup my file provisioner like:\r\n```javascript\r\n{\r\n    \"type\": \"file\", \r\n    \"source\": \"/tmp/htmlreports/\", \r\n    \"direction\": \"download\",\r\n    \"destination\": \"htmlreports/\" \r\n},\r\n```\r\nThe provisioner always fails with message\r\n```\r\n==> amazon-ebs: Downloading /tmp/htmlreports/ => htmlreports/\r\n==> amazon-ebs: Terminating the source AWS instance...\r\n==> amazon-ebs: No AMIs to cleanup\r\n==> amazon-ebs: Deleting temporary security group...\r\nBuild 'amazon-ebs' errored: open htmlreports/: is a directory\r\n\r\n==> Some builds didn't complete successfully and had errors:\r\n--> amazon-ebs: open htmlreports/: is a directory\r\n\r\n==> Builds finished but no artifacts were created.\r\n``` \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/187625548","html_url":"https://github.com/mitchellh/packer/issues/3251#issuecomment-187625548","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/3251","id":187625548,"user":{"login":"rickard-von-essen","id":557699,"avatar_url":"https://avatars.githubusercontent.com/u/557699?v=3","gravatar_id":"","url":"https://api.github.com/users/rickard-von-essen","html_url":"https://github.com/rickard-von-essen","followers_url":"https://api.github.com/users/rickard-von-essen/followers","following_url":"https://api.github.com/users/rickard-von-essen/following{/other_user}","gists_url":"https://api.github.com/users/rickard-von-essen/gists{/gist_id}","starred_url":"https://api.github.com/users/rickard-von-essen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickard-von-essen/subscriptions","organizations_url":"https://api.github.com/users/rickard-von-essen/orgs","repos_url":"https://api.github.com/users/rickard-von-essen/repos","events_url":"https://api.github.com/users/rickard-von-essen/events{/privacy}","received_events_url":"https://api.github.com/users/rickard-von-essen/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T09:40:39Z","updated_at":"2016-02-23T09:40:39Z","body":"```\r\nBuild 'amazon-ebs' errored: scp: /tmp/htmlreports: not a regular file\r\n```\r\nSuggests SSH."}}