Skip to content

Kirby 4.5.0

Dir::copy()

Copy the directory to a new destination

Dir::copy(string $dir, string $target, bool $recursive = true, array|false $ignore = [ ]): bool

Parameters

Name Type Default Description
$dir * string
$target * string
$recursive bool true
$ignore array|false [ ] List of full paths to skip during copying
or false to copy all files, including
those listed in Dir::$ignore

Return type

bool

Parent class

Kirby\Filesystem\Dir