public function move($from, $to)
    {
        $call = 'fileops/move';
        $params = array(
                'root' => $this->root,
                'from_path' => $this->normalisePath($from),
                'to_path' => $this->normalisePath($to),
        );
        $response = $this->fetch('POST', self::API_URL, $call, $params);
        return $response;
    }
public function move($from, $to)
    {
        $call = 'fileops/move';
        $params = array(
                'root' => $this->root,
                'from_path' => $this->normalisePath($from),
                'to_path' => $this->normalisePath($to),
        );
        $response = $this->fetch('POST', self::API_URL, $call, $params);
        return $response;
    }
public function move ( $ from , $ to ) { $ call = 'fileops/move' ; $ params = array ( 'root' => $ this -> root , 'from_path' => $ this -> normalisePath ( $ from ) , 'to_path' => $ this -> normalisePath ( $ to ) , ) ; $ response = $ this -> fetch ( 'POST' , self :: API_URL , $ call , $ params ) ; return $ response ; }
Moves a file or folder to a new location
@param string $from File or folder to be moved, relative to root
@param string $to Destination path, relative to root
@return object stdClass
Moves a file or folder to a new location