Skip to content

Kirby 3.6.6

F::move()

Moves a file to a new location

F::move(string $oldRoot, string $newRoot, bool $force = false): bool

Parameters

Name Type Default Description
$oldRoot * string The current path for the file
$newRoot * string The path to the new location
$force bool false Force move if the target file exists

Return type

bool

Parent class

Kirby\Filesystem\F