{"action":"created","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/1500","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/1500/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1500/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/1500/events","html_url":"https://github.com/gulpjs/gulp/issues/1500","id":128598923,"number":1500,"title":"gulp copy file into dist folder ","user":{"login":"ahmed-hamdy90","id":2749816,"avatar_url":"https://avatars.githubusercontent.com/u/2749816?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmed-hamdy90","html_url":"https://github.com/ahmed-hamdy90","followers_url":"https://api.github.com/users/ahmed-hamdy90/followers","following_url":"https://api.github.com/users/ahmed-hamdy90/following{/other_user}","gists_url":"https://api.github.com/users/ahmed-hamdy90/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmed-hamdy90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmed-hamdy90/subscriptions","organizations_url":"https://api.github.com/users/ahmed-hamdy90/orgs","repos_url":"https://api.github.com/users/ahmed-hamdy90/repos","events_url":"https://api.github.com/users/ahmed-hamdy90/events{/privacy}","received_events_url":"https://api.github.com/users/ahmed-hamdy90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-25T17:54:26Z","updated_at":"2016-01-26T14:16:07Z","closed_at":null,"body":"I knows this issue sound to be a duplicate issue But I had tired all solutions I had found into stackoverflow Questions Like [this Question](http://stackoverflow.com/questions/21224252/looking-for-way-to-copy-files-in-gulp-and-rename-based-on-parent-directory)  or closed issues  But There is nothing happened.\r\n\r\nmy folder structure :\r\n```\r\nproject\r\n   |_ gulpfile.js\r\n   |_ dist/ // dist folder is does not exits but must create by using gulp copy task\r\n   |_ client/\r\n          |_ index.html\r\n          |_ app/\r\n               |_ main.js\r\n               |_ utils/\r\n                     |_ index.js\r\n     \r\n```\r\n\r\ngulp copy task :\r\n```\r\ngulp.task('copy', function () {\r\n     gulp\r\n \t  .src('client/index.html')\r\n \t  .pipe(gulp.dest('dist'));\r\n});\r\n```\r\n\r\nI had tried to use `return`  before `gulp.src` Like This\r\n\r\n```\r\ngulp.task('copy', function () {\r\n     return gulp\r\n \t         .src('client/index.html')\r\n \t         .pipe(gulp.dest('dist'));\r\n});\r\n```\r\n\r\nAnd I had tried to use `base` option for `gulp.src` Like This\r\n\r\n```\r\ngulp.task('copy', function () {\r\n     return gulp\r\n \t         .src('client/index.html, {base: 'client'}')\r\n \t         .pipe(gulp.dest('dist'));\r\n});\r\n```\r\n\r\nAlso I Had tried to debug `Vinyl` stream using [`gulp-debug`] (https://github.com/sindresorhus/gulp-debug) Like This:\r\n```\r\ngulp.task('copy', function () {\r\n     return gulp\r\n \t         .src('client/index.html, {base: 'client'}')\r\n \t         .pipe(gulp.dest('dist'))\r\n             .pipe(debug());\r\n});\r\n````\r\n\r\nwas print  `gulp-debug: 0 items`"},"comment":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/comments/175035054","html_url":"https://github.com/gulpjs/gulp/issues/1500#issuecomment-175035054","issue_url":"https://api.github.com/repos/gulpjs/gulp/issues/1500","id":175035054,"user":{"login":"heikki","id":82735,"avatar_url":"https://avatars.githubusercontent.com/u/82735?v=3","gravatar_id":"","url":"https://api.github.com/users/heikki","html_url":"https://github.com/heikki","followers_url":"https://api.github.com/users/heikki/followers","following_url":"https://api.github.com/users/heikki/following{/other_user}","gists_url":"https://api.github.com/users/heikki/gists{/gist_id}","starred_url":"https://api.github.com/users/heikki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heikki/subscriptions","organizations_url":"https://api.github.com/users/heikki/orgs","repos_url":"https://api.github.com/users/heikki/repos","events_url":"https://api.github.com/users/heikki/events{/privacy}","received_events_url":"https://api.github.com/users/heikki/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T14:16:07Z","updated_at":"2016-01-26T14:16:07Z","body":"Duplicate of #616"}}