{"action":"created","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/1027","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/1027/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1027/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/1027/events","html_url":"https://github.com/gulpjs/gulp/issues/1027","id":69403796,"number":1027,"title":"Gulp cannot find specified files, when the path contains square brackets ( '[' and ']' )","user":{"login":"richrdkng","id":7887391,"avatar_url":"https://avatars.githubusercontent.com/u/7887391?v=3","gravatar_id":"","url":"https://api.github.com/users/richrdkng","html_url":"https://github.com/richrdkng","followers_url":"https://api.github.com/users/richrdkng/followers","following_url":"https://api.github.com/users/richrdkng/following{/other_user}","gists_url":"https://api.github.com/users/richrdkng/gists{/gist_id}","starred_url":"https://api.github.com/users/richrdkng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richrdkng/subscriptions","organizations_url":"https://api.github.com/users/richrdkng/orgs","repos_url":"https://api.github.com/users/richrdkng/repos","events_url":"https://api.github.com/users/richrdkng/events{/privacy}","received_events_url":"https://api.github.com/users/richrdkng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-19T09:18:35Z","updated_at":"2015-04-19T12:01:49Z","closed_at":null,"body":"By convention, throughout projects i have worked with, the main project folder is called \"Project [the actual project name]\",\r\ne.g.: **Project [gulp-is-awesome.js]**\r\n\r\nThe problem with this naming convention is that gulp will not find the specified files.\r\ni.e.: when using gulp:\r\n```javascript\r\ngulp.task('default', function() {\r\n    return gulp\r\n        .src('test/**/*.*')\r\n        .pipe(debug());        \r\n});\r\n```\r\n...gulp won't find anything within the specified glob, even when it contains files.\r\nThe result will be:\r\n```\r\ngulp-debug: 0 items\r\n```\r\n...instead of the actual files.\r\n\r\nOf course, renaming the folder by simply just omit the square brackets (**Project gulp-is-awesome.js**) will fix this issue.\r\n__But the actual problem will still remain, that is gulp cannot find/use files from folders their names contain square brackets.__\r\n\r\nThis issue occurred on Windows 7, Windows 8 and Windows 8.1.\r\n__Did not test on other platforms yet.__\r\n```json\r\n\"iojs\": \"1.7.1\"\r\n\"gulp\": \"^3.8.11\",\r\n\"gulp-debug\": \"^2.0.1\"\r\n```"},"comment":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/comments/94270116","html_url":"https://github.com/gulpjs/gulp/issues/1027#issuecomment-94270116","issue_url":"https://api.github.com/repos/gulpjs/gulp/issues/1027","id":94270116,"user":{"login":"tunnckoCore","id":5038030,"avatar_url":"https://avatars.githubusercontent.com/u/5038030?v=3","gravatar_id":"","url":"https://api.github.com/users/tunnckoCore","html_url":"https://github.com/tunnckoCore","followers_url":"https://api.github.com/users/tunnckoCore/followers","following_url":"https://api.github.com/users/tunnckoCore/following{/other_user}","gists_url":"https://api.github.com/users/tunnckoCore/gists{/gist_id}","starred_url":"https://api.github.com/users/tunnckoCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunnckoCore/subscriptions","organizations_url":"https://api.github.com/users/tunnckoCore/orgs","repos_url":"https://api.github.com/users/tunnckoCore/repos","events_url":"https://api.github.com/users/tunnckoCore/events{/privacy}","received_events_url":"https://api.github.com/users/tunnckoCore/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T12:01:49Z","updated_at":"2015-04-19T12:01:49Z","body":"say you have\r\n```\r\nProject [gulp-is-awesome.js]\r\nProject [my-awesome-project.js]\r\n```\r\nthis will work\r\n```js\r\nvar gulp = require('gulp')\r\nvar debug = require('gulp-debug')\r\n\r\ngulp.task('default', function() {\r\n    return gulp\r\n        .src('./**/Project*\\\\[*.*\\\\]')\r\n        .pipe(debug());\r\n});\r\n```"}}