Method: dir::move
Moves a directory to a new location
Info
Syntax
dir::move($old, $new)
Parameters
- $old (string) The current path of the directory
- $new (string) The desired path where the dir should be moved to
Return (boolean)
True: the directory has been moved, false: moving failed
Example
$move = dir::move('mydirectory', 'mynewdirectory');
if($move) echo 'the directory has been moved to mynewdirectory';