{"action":"created","issue":{"url":"https://api.github.com/repos/padraic/humbug/issues/43","labels_url":"https://api.github.com/repos/padraic/humbug/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/padraic/humbug/issues/43/comments","events_url":"https://api.github.com/repos/padraic/humbug/issues/43/events","html_url":"https://github.com/padraic/humbug/pull/43","id":54697068,"number":43,"title":"Allow to return the real path of folders containing wildcards.","user":{"login":"pfrenssen","id":442924,"avatar_url":"https://avatars.githubusercontent.com/u/442924?v=3","gravatar_id":"","url":"https://api.github.com/users/pfrenssen","html_url":"https://github.com/pfrenssen","followers_url":"https://api.github.com/users/pfrenssen/followers","following_url":"https://api.github.com/users/pfrenssen/following{/other_user}","gists_url":"https://api.github.com/users/pfrenssen/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrenssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrenssen/subscriptions","organizations_url":"https://api.github.com/users/pfrenssen/orgs","repos_url":"https://api.github.com/users/pfrenssen/repos","events_url":"https://api.github.com/users/pfrenssen/events{/privacy}","received_events_url":"https://api.github.com/users/pfrenssen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-18T13:49:24Z","updated_at":"2015-01-18T14:13:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/padraic/humbug/pulls/43","html_url":"https://github.com/padraic/humbug/pull/43","diff_url":"https://github.com/padraic/humbug/pull/43.diff","patch_url":"https://github.com/padraic/humbug/pull/43.patch"},"body":"I am using the following configuration:\r\n\r\n```\r\n{\r\n    \"timeout\": 10, \r\n    \"source\": {\r\n        \"directories\": [\r\n            \".\" \r\n        ],  \r\n        \"excludes\": [\r\n            \"humbug\",\r\n            \"vendor\"\r\n        ]   \r\n    },  \r\n    \"logs\": {\r\n        \"text\": \"humbuglog.txt\"\r\n    }   \r\n}\r\n```\r\n\r\nWhen I run humbug it throws an exception when it tries to resolve a path with a wildcard. This is because it is using `file_exists()` which cannot handle paths with wildcards:\r\n\r\n```\r\n[Humbug\\Exception\\InvalidArgumentException]                                           \r\n  Could not find file ./modules/*/tests working from /home/pieter/drupal/core\r\n```\r\n\r\nThis can be solved by falling back to using `glob()` to check if any files exist that match the wildcard path."},"comment":{"url":"https://api.github.com/repos/padraic/humbug/issues/comments/70409672","html_url":"https://github.com/padraic/humbug/pull/43#issuecomment-70409672","issue_url":"https://api.github.com/repos/padraic/humbug/issues/43","id":70409672,"user":{"login":"padraic","id":19780,"avatar_url":"https://avatars.githubusercontent.com/u/19780?v=3","gravatar_id":"","url":"https://api.github.com/users/padraic","html_url":"https://github.com/padraic","followers_url":"https://api.github.com/users/padraic/followers","following_url":"https://api.github.com/users/padraic/following{/other_user}","gists_url":"https://api.github.com/users/padraic/gists{/gist_id}","starred_url":"https://api.github.com/users/padraic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/padraic/subscriptions","organizations_url":"https://api.github.com/users/padraic/orgs","repos_url":"https://api.github.com/users/padraic/repos","events_url":"https://api.github.com/users/padraic/events{/privacy}","received_events_url":"https://api.github.com/users/padraic/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T14:13:18Z","updated_at":"2015-01-18T14:13:18Z","body":"Thanks @pfrenssen. Merging now!"}}