{"action":"created","issue":{"url":"https://api.github.com/repos/colindembovsky/cols-agent-tasks/issues/7","repository_url":"https://api.github.com/repos/colindembovsky/cols-agent-tasks","labels_url":"https://api.github.com/repos/colindembovsky/cols-agent-tasks/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/colindembovsky/cols-agent-tasks/issues/7/comments","events_url":"https://api.github.com/repos/colindembovsky/cols-agent-tasks/issues/7/events","html_url":"https://github.com/colindembovsky/cols-agent-tasks/issues/7","id":141411791,"number":7,"title":"Search fails when source path includes a space","user":{"login":"reidsimon","id":1228721,"avatar_url":"https://avatars.githubusercontent.com/u/1228721?v=3","gravatar_id":"","url":"https://api.github.com/users/reidsimon","html_url":"https://github.com/reidsimon","followers_url":"https://api.github.com/users/reidsimon/followers","following_url":"https://api.github.com/users/reidsimon/following{/other_user}","gists_url":"https://api.github.com/users/reidsimon/gists{/gist_id}","starred_url":"https://api.github.com/users/reidsimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reidsimon/subscriptions","organizations_url":"https://api.github.com/users/reidsimon/orgs","repos_url":"https://api.github.com/users/reidsimon/repos","events_url":"https://api.github.com/users/reidsimon/events{/privacy}","received_events_url":"https://api.github.com/users/reidsimon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-16T21:49:09Z","updated_at":"2016-03-19T12:17:56Z","closed_at":null,"body":"The path is quoted, but the search parameters are then appended, resulting in the following glob always failing to match:\r\n\r\nSource path: C:\\vsts_agent\\_work\\874a330a4\\build name has a space\\drop\\\r\nSearch Parameter: App.SetParameters.xml\r\n\r\nResult:\r\n##[debug]glob \"C:\\vsts_agent\\_work\\874a330a4\\build name has a space\\drop\\\"App.SetParameters.xml\r\n\r\nNot the quotes before the parameter that breaks the copy."},"comment":{"url":"https://api.github.com/repos/colindembovsky/cols-agent-tasks/issues/comments/198692274","html_url":"https://github.com/colindembovsky/cols-agent-tasks/issues/7#issuecomment-198692274","issue_url":"https://api.github.com/repos/colindembovsky/cols-agent-tasks/issues/7","id":198692274,"user":{"login":"colindembovsky","id":1932561,"avatar_url":"https://avatars.githubusercontent.com/u/1932561?v=3","gravatar_id":"","url":"https://api.github.com/users/colindembovsky","html_url":"https://github.com/colindembovsky","followers_url":"https://api.github.com/users/colindembovsky/followers","following_url":"https://api.github.com/users/colindembovsky/following{/other_user}","gists_url":"https://api.github.com/users/colindembovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/colindembovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colindembovsky/subscriptions","organizations_url":"https://api.github.com/users/colindembovsky/orgs","repos_url":"https://api.github.com/users/colindembovsky/repos","events_url":"https://api.github.com/users/colindembovsky/events{/privacy}","received_events_url":"https://api.github.com/users/colindembovsky/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T12:17:56Z","updated_at":"2016-03-19T12:17:56Z","body":"@reidsimon For some strange reason `sourcePath = sourcePath.replace(\"\\\"\", \"\")` still left a trailing quote. I just do a replacement on the whole glob like this: `globPattern = `${sourcePath}\\\\${filePattern}`.replace(\"\\\"\", \"\")` which seems to do the trick!\r\n\r\nPlease confirm that this works for you and I'll close this issue. Thanks for working with me on this!"}}