{"action":"closed","issue":{"url":"https://api.github.com/repos/aelvan/Inlin-Craft/issues/4","repository_url":"https://api.github.com/repos/aelvan/Inlin-Craft","labels_url":"https://api.github.com/repos/aelvan/Inlin-Craft/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/aelvan/Inlin-Craft/issues/4/comments","events_url":"https://api.github.com/repos/aelvan/Inlin-Craft/issues/4/events","html_url":"https://github.com/aelvan/Inlin-Craft/issues/4","id":154944302,"number":4,"title":"file_exists($filePath) returns false","user":{"login":"sgtpenguin","id":16600959,"avatar_url":"https://avatars.githubusercontent.com/u/16600959?v=3","gravatar_id":"","url":"https://api.github.com/users/sgtpenguin","html_url":"https://github.com/sgtpenguin","followers_url":"https://api.github.com/users/sgtpenguin/followers","following_url":"https://api.github.com/users/sgtpenguin/following{/other_user}","gists_url":"https://api.github.com/users/sgtpenguin/gists{/gist_id}","starred_url":"https://api.github.com/users/sgtpenguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgtpenguin/subscriptions","organizations_url":"https://api.github.com/users/sgtpenguin/orgs","repos_url":"https://api.github.com/users/sgtpenguin/repos","events_url":"https://api.github.com/users/sgtpenguin/events{/privacy}","received_events_url":"https://api.github.com/users/sgtpenguin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-16T01:19:51Z","updated_at":"2016-05-17T14:59:14Z","closed_at":"2016-05-17T14:59:14Z","body":"My example $filePath ends up being 'http://localhost:8888/carbon/public/re/icons/money.svg', 'http://localhost:8888/carbon/public/' coming from 'inlinPublicRoot' and the rest being passed by $fileName.  Checking file_exists($fileName) does work.\r\n\r\n`if ($fileName !== '' && file_exists($fileName)) {`\r\n\r\nI don't think `file_exists()` should be getting a full url.  From the docs:\r\n\r\n> file_exists — Checks whether a file or directory exists\r\n\r\nThanks for writing the plugin!  Let me know what you think."}}