Habari\Media::move PHP Метод

move() публичный статический Метод

Move the asset using the specified from and to paths A shortcut for Media::copy() then Media::delete()
public static move ( string $pathfrom, string $pathto ) : boolean
$pathfrom string The virtual path source
$pathto string The virtual path destination
Результат boolean true on success
    public static function move($pathfrom, $pathto)
    {
        if (Media::copy($pathfrom, $pathto)) {
            return Media::delete($pathfrom);
        } else {
            return false;
        }
    }