$api->file()
Returns the file object for the given parent path and filename
$api->file(string $path, string $filename): Kirby\Cms\File|nullParameters
| Name | Type | Default | Description | 
|---|---|---|---|
| $path * | string | – | Path to file's parent model | 
| $filename * | string | – | Filename | 
Return type
Kirby\Cms\File|null
Exceptions
| Type | Description | 
|---|---|
| Kirby\Exception\NotFoundException | if the file cannot be found |