{"action":"created","issue":{"url":"https://api.github.com/repos/deployphp/deployer/issues/634","repository_url":"https://api.github.com/repos/deployphp/deployer","labels_url":"https://api.github.com/repos/deployphp/deployer/issues/634/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/deployer/issues/634/comments","events_url":"https://api.github.com/repos/deployphp/deployer/issues/634/events","html_url":"https://github.com/deployphp/deployer/issues/634","id":150060813,"number":634,"title":"Recursive download","user":{"login":"loranger","id":6014,"avatar_url":"https://avatars.githubusercontent.com/u/6014?v=3","gravatar_id":"","url":"https://api.github.com/users/loranger","html_url":"https://github.com/loranger","followers_url":"https://api.github.com/users/loranger/followers","following_url":"https://api.github.com/users/loranger/following{/other_user}","gists_url":"https://api.github.com/users/loranger/gists{/gist_id}","starred_url":"https://api.github.com/users/loranger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loranger/subscriptions","organizations_url":"https://api.github.com/users/loranger/orgs","repos_url":"https://api.github.com/users/loranger/repos","events_url":"https://api.github.com/users/loranger/events{/privacy}","received_events_url":"https://api.github.com/users/loranger/received_events","type":"User","site_admin":false},"labels":[{"id":176763198,"url":"https://api.github.com/repos/deployphp/deployer/labels/discuss","name":"discuss","color":"f7c6c7","default":false},{"id":47395265,"url":"https://api.github.com/repos/deployphp/deployer/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-04-21T12:33:19Z","updated_at":"2016-11-08T09:15:44Z","closed_at":"2016-11-08T08:38:48Z","body":"| Q | A |\n| --- | --- |\n| Issue Type | Feature Request |\n| Deployer Version | master |\n| Local Machine OS | OSX 10.11.4 |\n| Remote Machine OS | Debian 6.0.7 |\n### Description\n\nIs there a way for the `download` function to handle directories ?\nIn addition to my deployment tasks, I also created two tasks in order to sync the markdown files the users created with my deployed CMS.\n`pages:upload` works perfectly, but `pages:download` does not at all.\n### Content of `deploy.php`\n\n``` php\n<?php\n\nrequire 'recipe/composer.php';\nrequire 'vendor/deployphp/recipes/recipes/rsync.php';\n\n/*\n|--------------------------------------------------------------------------\n| Server and services\n|--------------------------------------------------------------------------\n*/\n\nserver('prod', 'domain.com', 22)\n    ->user('me')\n    ->password('****')\n    ->stage('production')\n    ->env('deploy_path', '/path/to/domain/');\n\nset('repository', 'my@server:repository.git');\n\nset('shared_dirs', [\n    'user/pages',\n    'logs',\n]);\n\nset('writable_dirs', [\n    'cache',\n    'logs',\n    'images',\n    'user/pages',\n]);\n\n/*\n|--------------------------------------------------------------------------\n| Tasks\n|--------------------------------------------------------------------------\n*/\n\ntask('pages:upload', function () {\n    upload('user/pages', '{{deploy_path}}/shared/user/pages');\n});\n\ntask('pages:download', function () {\n    download('user/pages', '{{deploy_path}}/shared/user/pages');\n});\n\n```\n### Output log\n\n```\n$ ./bin/dep pages:download production -vvv                               master ✱ ◼\n➤ Executing task pages:download\n↳ on [prod]\nPHP Warning:  fopen(user/pages): failed to open stream: Is a directory in /Users/loranger/Developer/myproject/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php on line 2054\n\nWarning: fopen(user/pages): failed to open stream: Is a directory in /Users/loranger/Developer/myproject/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php on line 2054\n\n\n  [RuntimeException]\n\n```\n"},"comment":{"url":"https://api.github.com/repos/deployphp/deployer/issues/comments/259084621","html_url":"https://github.com/deployphp/deployer/issues/634#issuecomment-259084621","issue_url":"https://api.github.com/repos/deployphp/deployer/issues/634","id":259084621,"user":{"login":"ivangretsky","id":6697626,"avatar_url":"https://avatars.githubusercontent.com/u/6697626?v=3","gravatar_id":"","url":"https://api.github.com/users/ivangretsky","html_url":"https://github.com/ivangretsky","followers_url":"https://api.github.com/users/ivangretsky/followers","following_url":"https://api.github.com/users/ivangretsky/following{/other_user}","gists_url":"https://api.github.com/users/ivangretsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ivangretsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivangretsky/subscriptions","organizations_url":"https://api.github.com/users/ivangretsky/orgs","repos_url":"https://api.github.com/users/ivangretsky/repos","events_url":"https://api.github.com/users/ivangretsky/events{/privacy}","received_events_url":"https://api.github.com/users/ivangretsky/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T09:15:44Z","updated_at":"2016-11-08T09:15:44Z","body":"Cool. But I still would recommend posting a nice roadmap there. And allow patrons who give more influence roadmap features. I would be glad to promote this, but would rather do it after you'll polish your proposal."}}
{"actor":{"display_login":"ivangretsky"}}