locate()
locate(string $path, array $locations, array $extensions) : string
Translates a given path by searching it in the passed locations and with the passed extensions.
Parameters
| string | $path | the file path to translate. |
| array | $locations | the directories to search in. |
| array | $extensions | the file extensions to search for (e.g. ['.jd', '.pug']. |