Skip to content

Kirby 5.0.4

Dir::move()

Moves a directory to a new location

Dir::move(string $old, string $new): bool

Parameters

Name Type Default Description
$oldrequired string no default value The current path of the directory
$newrequired string no default value The desired path where the dir should be moved to

Return type

bool

true: the directory has been moved, false: moving failed

Parent class

Kirby\Filesystem\Dir