Skip to content

Kirby 4.2.0

$file->root()

Returns the given file path

$file->root(): string|null

Return type

string|null

Parent class

Kirby\Filesystem\File