Skip to content

Kirby 3.6.6

$file->move()

Move the file to a new location

$file->move(string $newRoot, bool $overwrite = false): Kirby\Filesystem\File

Parameters

Name Type Default Description
$newRoot * string
$overwrite bool false Force overwriting any existing files

Return type

Kirby\Filesystem\File

This method does not modify the existing $file object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Filesystem\File