public static function move(string $path, string $to, bool $symlink = false):int
    {
        try {
            if ($symlink != false) {
                symlink($path, $to);
            } else {
                rename($path, $to);
            }
        } catch (\Exception $exception) {
            throw new \Exception("Server Error : Cannot move $path to $to => ".$exception);
        }

        return (1);
    }
public static function move(string $path, string $to, bool $symlink = false):int
    {
        try {
            if ($symlink != false) {
                symlink($path, $to);
            } else {
                rename($path, $to);
            }
        } catch (\Exception $exception) {
            throw new \Exception("Server Error : Cannot move $path to $to => ".$exception);
        }

        return (1);
    }
public static function move ( string $ path , string $ to , bool $ symlink = false ) : int { try { if ( $ symlink != false ) { symlink ( $ path , $ to ) ; } else { rename ( $ path , $ to ) ; } } catch ( \ Exception $ exception ) { throw new \ Exception ( "Server Error : Cannot move $path to $to => " . $ exception ) ; } return ( 1 ) ; }
Move an element on the server
@param string $path Element Path
@param string $to Move to
@param bool $symlink Is symlink
@return int Result
@throws \Exception Generate Error
Move an element on the server