{"action":"created","issue":{"url":"https://api.github.com/repos/morris/vinyl-ftp/issues/3","labels_url":"https://api.github.com/repos/morris/vinyl-ftp/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/morris/vinyl-ftp/issues/3/comments","events_url":"https://api.github.com/repos/morris/vinyl-ftp/issues/3/events","html_url":"https://github.com/morris/vinyl-ftp/issues/3","id":59823790,"number":3,"title":"Error: Considering directory a file + sometimes cannot find local dirs","user":{"login":"smajl","id":3033382,"avatar_url":"https://avatars.githubusercontent.com/u/3033382?v=3","gravatar_id":"","url":"https://api.github.com/users/smajl","html_url":"https://github.com/smajl","followers_url":"https://api.github.com/users/smajl/followers","following_url":"https://api.github.com/users/smajl/following{/other_user}","gists_url":"https://api.github.com/users/smajl/gists{/gist_id}","starred_url":"https://api.github.com/users/smajl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smajl/subscriptions","organizations_url":"https://api.github.com/users/smajl/orgs","repos_url":"https://api.github.com/users/smajl/repos","events_url":"https://api.github.com/users/smajl/events{/privacy}","received_events_url":"https://api.github.com/users/smajl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/morris/vinyl-ftp/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-04T16:37:33Z","updated_at":"2015-03-07T23:33:23Z","closed_at":"2015-03-07T23:33:23Z","body":"Task:\r\n```javascript\r\ngulp.task('deploy', function () {\r\n  var connection = ftp.create({\r\n    host: '***',\r\n    user: '***',\r\n    pass: '***',\r\n    log: $.util.log\r\n  });\r\n\r\n  return gulp.src(PATHS.build.dist.basePath + '**/*', { buffer: false })\r\n    //.pipe(connection.newer('/'))\r\n    .pipe(connection.dest('/'));\r\n});\r\n```\r\nFirst deploy runs sometimes OK, sometimes **errors with**:\r\n```\r\n[17:34:07] Error: /jspm_packages/github/smajl/bootstrap@master/dist: No such file or directory\r\n```\r\nBut the directory is always there. Anyway **after completing deploy I get this on every next try**:\r\n```\r\n[17:29:24] Starting 'deploy'...\r\n[17:29:24] CONN \r\n[17:29:24] CONN \r\n[17:29:24] CONN \r\n[17:29:24] READY\r\n[17:29:24] PUT   /index.html\r\n[17:29:24] READY\r\n[17:29:24] PUT   /jspm.conf.js\r\n[17:29:24] READY\r\n[17:29:24] MLSD  /\r\n[17:29:24] UP    100% /index.html\r\n[17:29:24] UP    100% /jspm.conf.js\r\n[17:29:24] LIST  /\r\n[17:29:24] ERROR [Error: /images is a file, cannot MKDIR]\r\n[17:29:24] DISC \r\n[17:29:24] 'deploy' errored after 203 ms\r\n```\r\nAny idea? I deploy with gulp-ftp with same setup with no problem. :("},"comment":{"url":"https://api.github.com/repos/morris/vinyl-ftp/issues/comments/77716493","html_url":"https://github.com/morris/vinyl-ftp/issues/3#issuecomment-77716493","issue_url":"https://api.github.com/repos/morris/vinyl-ftp/issues/3","id":77716493,"user":{"login":"morris","id":32837,"avatar_url":"https://avatars.githubusercontent.com/u/32837?v=3","gravatar_id":"","url":"https://api.github.com/users/morris","html_url":"https://github.com/morris","followers_url":"https://api.github.com/users/morris/followers","following_url":"https://api.github.com/users/morris/following{/other_user}","gists_url":"https://api.github.com/users/morris/gists{/gist_id}","starred_url":"https://api.github.com/users/morris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morris/subscriptions","organizations_url":"https://api.github.com/users/morris/orgs","repos_url":"https://api.github.com/users/morris/repos","events_url":"https://api.github.com/users/morris/events{/privacy}","received_events_url":"https://api.github.com/users/morris/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T23:33:23Z","updated_at":"2015-03-07T23:33:23Z","body":"great :) thanks for reporting! "}}