```
public function __construct(Filesystem $files, $compiledRelativePath = null)
{
    $this->files = $files;
    $this->compiledRelativePath = $compiledRelativePath ?: 'bootstrap/compiled.php';
}

...

protected function compilePath($providerPath, $path)
{
    if ($path == '*')
    {
        return array_map(function($f) { return $f->getPathname(); }, $this->files->allFiles($providerPath));
    }
    elseif (ends_with($path, '*'))
    {
        $path = substr($path, 0, -2);

        return array_map(function($f) { return $f->getPathname(); }, $this->files->allFiles("{$providerPath}/{$path}"));
    }
    elseif ($this->files->isDirectory("{$providerPath}/{$path}"))
    {
        return $this->files->files("{$providerPath}/{$path}");
    }
    elseif ($this->files->isFile("{$providerPath}/{$path}"))
    {
    return "{$providerPath}/{$path}";
    }

    return array();
}