Skip to content

Kirby 4.4.1

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