{"action":"created","issue":{"url":"https://api.github.com/repos/BrunoDeBarros/git-deploy-php/issues/60","labels_url":"https://api.github.com/repos/BrunoDeBarros/git-deploy-php/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/BrunoDeBarros/git-deploy-php/issues/60/comments","events_url":"https://api.github.com/repos/BrunoDeBarros/git-deploy-php/issues/60/events","html_url":"https://github.com/BrunoDeBarros/git-deploy-php/issues/60","id":70967220,"number":60,"title":"Throwing ftp_mkdir(): Can't create directory errors?","user":{"login":"bobrocke","id":2962426,"avatar_url":"https://avatars.githubusercontent.com/u/2962426?v=3","gravatar_id":"","url":"https://api.github.com/users/bobrocke","html_url":"https://github.com/bobrocke","followers_url":"https://api.github.com/users/bobrocke/followers","following_url":"https://api.github.com/users/bobrocke/following{/other_user}","gists_url":"https://api.github.com/users/bobrocke/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrocke/subscriptions","organizations_url":"https://api.github.com/users/bobrocke/orgs","repos_url":"https://api.github.com/users/bobrocke/repos","events_url":"https://api.github.com/users/bobrocke/events{/privacy}","received_events_url":"https://api.github.com/users/bobrocke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-25T21:10:42Z","updated_at":"2015-04-25T21:21:48Z","closed_at":null,"body":"After successfully uploading a bunch of files, I get this error:\r\n```\r\n[2015-04-25 17:05:52 -0400] Uploaded: user/plugins/materializer/materializer.php\r\n[2015-04-25 17:05:52 -0400] Uploaded: user/plugins/materializer/materializer.yaml\r\n[2015-04-25 17:06:00 -0400] Deleted: cache/twig/\r\nPHP Warning:  ftp_mkdir(): Can't create directory: File exists in phar:///usr/local/bin/git-deploy/src/Ftp.php on line 144\r\nPHP Stack trace:\r\nPHP   1. {main}() /usr/local/bin/git-deploy:0\r\nPHP   2. Brunodebarros\\Gitdeploy\\Server->deploy() /usr/local/bin/git-deploy:52\r\nPHP   3. Brunodebarros\\Gitdeploy\\Ftp->mkdir() phar:///usr/local/bin/git-deploy/src/Server.php:140\r\nPHP   4. ftp_mkdir() phar:///usr/local/bin/git-deploy/src/Ftp.php:144\r\n\r\nWarning: ftp_mkdir(): Can't create directory: File exists in phar:///usr/local/bin/git-deploy/src/Ftp.php on line 144\r\n\r\nCall Stack:\r\n    0.0016     236560   1. {main}() /usr/local/bin/git-deploy:0\r\n    0.6203     438744   2. Brunodebarros\\Gitdeploy\\Server->deploy() /usr/local/bin/git-deploy:52\r\n  387.7395   16126152   3. Brunodebarros\\Gitdeploy\\Ftp->mkdir() phar:///usr/local/bin/git-deploy/src/Server.php:140\r\n  387.7395   16126272   4. ftp_mkdir() phar:///usr/local/bin/git-deploy/src/Ftp.php:144\r\n\r\n[2015-04-25 17:06:00 -0400] Created directory: cache/twig/\r\n[2015-04-25 17:06:21 -0400] Deleted: cache/doctrine/\r\nPHP Warning:  ftp_mkdir(): Can't create directory: File exists in phar:///usr/local/bin/git-deploy/src/Ftp.php on line 144\r\nPHP Stack trace:\r\nPHP   1. {main}() /usr/local/bin/git-deploy:0\r\nPHP   2. Brunodebarros\\Gitdeploy\\Server->deploy() /usr/local/bin/git-deploy:52\r\nPHP   3. Brunodebarros\\Gitdeploy\\Ftp->mkdir() phar:///usr/local/bin/git-deploy/src/Server.php:140\r\nPHP   4. ftp_mkdir() phar:///usr/local/bin/git-deploy/src/Ftp.php:144\r\n\r\nWarning: ftp_mkdir(): Can't create directory: File exists in phar:///usr/local/bin/git-deploy/src/Ftp.php on line 144\r\n\r\nCall Stack:\r\n    0.0016     236560   1. {main}() /usr/local/bin/git-deploy:0\r\n    0.6203     438744   2. Brunodebarros\\Gitdeploy\\Server->deploy() /usr/local/bin/git-deploy:52\r\n  409.4625   16126224   3. Brunodebarros\\Gitdeploy\\Ftp->mkdir() phar:///usr/local/bin/git-deploy/src/Server.php:140\r\n  409.4625   16126272   4. ftp_mkdir() phar:///usr/local/bin/git-deploy/src/Ftp.php:144\r\n\r\n[2015-04-25 17:06:21 -0400] Created directory: cache/doctrine/\r\n[2015-04-25 17:06:23 -0400] Deleted: cache/compiled/\r\nPHP Warning:  ftp_mkdir(): Can't create directory: File exists in phar:///usr/local/bin/git-deploy/src/Ftp.php on line 144\r\nPHP Stack trace:\r\nPHP   1. {main}() /usr/local/bin/git-deploy:0\r\nPHP   2. Brunodebarros\\Gitdeploy\\Server->deploy() /usr/local/bin/git-deploy:52\r\nPHP   3. Brunodebarros\\Gitdeploy\\Ftp->mkdir() phar:///usr/local/bin/git-deploy/src/Server.php:140\r\nPHP   4. ftp_mkdir() phar:///usr/local/bin/git-deploy/src/Ftp.php:144\r\n\r\nWarning: ftp_mkdir(): Can't create directory: File exists in phar:///usr/local/bin/git-deploy/src/Ftp.php on line 144\r\n\r\nCall Stack:\r\n    0.0016     236560   1. {main}() /usr/local/bin/git-deploy:0\r\n    0.6203     438744   2. Brunodebarros\\Gitdeploy\\Server->deploy() /usr/local/bin/git-deploy:52\r\n  410.8614   16126224   3. Brunodebarros\\Gitdeploy\\Ftp->mkdir() phar:///usr/local/bin/git-deploy/src/Server.php:140\r\n  410.8614   16126272   4. ftp_mkdir() phar:///usr/local/bin/git-deploy/src/Ftp.php:144\r\n\r\n[2015-04-25 17:06:23 -0400] Created directory: cache/compiled/\r\n[2015-04-25 17:06:23 -0400] Deleted: cache/validated-\r\n[2015-04-25 17:06:23 -0400] Created directory: cache/validated-\r\n[2015-04-25 17:06:26 -0400] Deleted: images/\r\nPHP Warning:  ftp_mkdir(): Can't create directory: File exists in phar:///usr/local/bin/git-deploy/src/Ftp.php on line 144\r\nPHP Stack trace:\r\nPHP   1. {main}() /usr/local/bin/git-deploy:0\r\nPHP   2. Brunodebarros\\Gitdeploy\\Server->deploy() /usr/local/bin/git-deploy:52\r\nPHP   3. Brunodebarros\\Gitdeploy\\Ftp->mkdir() phar:///usr/local/bin/git-deploy/src/Server.php:140\r\nPHP   4. ftp_mkdir() phar:///usr/local/bin/git-deploy/src/Ftp.php:144\r\n\r\nWarning: ftp_mkdir(): Can't create directory: File exists in phar:///usr/local/bin/git-deploy/src/Ftp.php on line 144\r\n\r\nCall Stack:\r\n    0.0016     236560   1. {main}() /usr/local/bin/git-deploy:0\r\n    0.6203     438744   2. Brunodebarros\\Gitdeploy\\Server->deploy() /usr/local/bin/git-deploy:52\r\n  414.3723   16126224   3. Brunodebarros\\Gitdeploy\\Ftp->mkdir() phar:///usr/local/bin/git-deploy/src/Server.php:140\r\n  414.3723   16126272   4. ftp_mkdir() phar:///usr/local/bin/git-deploy/src/Ftp.php:144\r\n\r\n[2015-04-25 17:06:26 -0400] Created directory: images/\r\n[2015-04-25 17:06:27 -0400] Deleted: assets/\r\nPHP Warning:  ftp_mkdir(): Can't create directory: File exists in phar:///usr/local/bin/git-deploy/src/Ftp.php on line 144\r\nPHP Stack trace:\r\nPHP   1. {main}() /usr/local/bin/git-deploy:0\r\nPHP   2. Brunodebarros\\Gitdeploy\\Server->deploy() /usr/local/bin/git-deploy:52\r\nPHP   3. Brunodebarros\\Gitdeploy\\Ftp->mkdir() phar:///usr/local/bin/git-deploy/src/Server.php:140\r\nPHP   4. ftp_mkdir() phar:///usr/local/bin/git-deploy/src/Ftp.php:144\r\n\r\nWarning: ftp_mkdir(): Can't create directory: File exists in phar:///usr/local/bin/git-deploy/src/Ftp.php on line 144\r\n\r\nCall Stack:\r\n    0.0016     236560   1. {main}() /usr/local/bin/git-deploy:0\r\n    0.6203     438744   2. Brunodebarros\\Gitdeploy\\Server->deploy() /usr/local/bin/git-deploy:52\r\n  415.4329   16126224   3. Brunodebarros\\Gitdeploy\\Ftp->mkdir() phar:///usr/local/bin/git-deploy/src/Server.php:140\r\n  415.4330   16126272   4. ftp_mkdir() phar:///usr/local/bin/git-deploy/src/Ftp.php:144\r\n\r\n[2015-04-25 17:06:27 -0400] Created directory: assets/\r\n[2015-04-25 17:06:28 -0400] Uploaded: user/themes/materialize/REVISION\r\n[2015-04-25 17:06:28 -0400] Uploaded: user/themes/materialize/PREVIOUS_REVISION\r\n[2015-04-25 17:06:28 -0400] Uploaded: user/plugins/materializer/REVISION\r\n[2015-04-25 17:06:28 -0400] Uploaded: user/plugins/materializer/PREVIOUS_REVISION\r\n[2015-04-25 17:06:28 -0400] Uploaded: REVISION\r\n[2015-04-25 17:06:29 -0400] Uploaded: PREVIOUS_REVISION\r\n[2015-04-25 17:06:29 -0400] Finished working on: ftp://bobrocke@ftp.bobrockefeller.com:21/public_html/materialize.bobrockefeller.com\r\n[2015-04-25 17:06:29 -0400] Disconnected from: ftp://bobrocke@ftp.bobrockefeller.com:21/public_html/materialize.bobrockefeller.com\r\n```\r\nWhat might that be?"},"comment":{"url":"https://api.github.com/repos/BrunoDeBarros/git-deploy-php/issues/comments/96278988","html_url":"https://github.com/BrunoDeBarros/git-deploy-php/issues/60#issuecomment-96278988","issue_url":"https://api.github.com/repos/BrunoDeBarros/git-deploy-php/issues/60","id":96278988,"user":{"login":"bobrocke","id":2962426,"avatar_url":"https://avatars.githubusercontent.com/u/2962426?v=3","gravatar_id":"","url":"https://api.github.com/users/bobrocke","html_url":"https://github.com/bobrocke","followers_url":"https://api.github.com/users/bobrocke/followers","following_url":"https://api.github.com/users/bobrocke/following{/other_user}","gists_url":"https://api.github.com/users/bobrocke/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrocke/subscriptions","organizations_url":"https://api.github.com/users/bobrocke/orgs","repos_url":"https://api.github.com/users/bobrocke/repos","events_url":"https://api.github.com/users/bobrocke/events{/privacy}","received_events_url":"https://api.github.com/users/bobrocke/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T21:21:48Z","updated_at":"2015-04-25T21:21:48Z","body":"Thanks! That was sloppy of me. Too quick of a copy/paste. :("}}