$api->files()
Returns the all readable files for the parent
$api->files(string $path): Kirby\Cms\Files
Parameters
Name | Type | Default | Description |
---|---|---|---|
$pathrequired | string |
no default value | Path to file's parent model |
Return type
This method modifies the existing $api
object it is applied to and returns it again.
Exceptions
Type | Description |
---|---|
Kirby\Exception\NotFoundException |
if the file cannot be found |