Reference

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

Source code

kirby/src/Toolkit/F.php#L428