Skip to content

Kirby 4.5.0

Dir::move()

Moves a directory to a new location

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

Parameters

Name Type Default Description
$old * string The current path of the directory
$new * string The desired path where the dir should be moved to

Return type

bool

Parent class

Kirby\Filesystem\Dir