Skip to content

Kirby 5.0.4

F::copy()

Copy a file to a new location.

F::copy(string $source, string $target, bool $force = false): bool

Parameters

Name Type Default
$sourcerequired string no default value
$targetrequired string no default value
$force bool false

Return type

bool

Parent class

Kirby\Filesystem\F