public function moveTo($newUrl, $flags)
    {
        $qry = new InvokePostMethodQuery($this->getResourcePath(), "moveto", array(
            "newurl" => $newUrl,
            "flags" => $flags
        ));
        $this->getContext()->addQuery($qry);
    }
public function moveTo($newUrl, $flags)
    {
        $qry = new InvokePostMethodQuery($this->getResourcePath(), "moveto", array(
            "newurl" => $newUrl,
            "flags" => $flags
        ));
        $this->getContext()->addQuery($qry);
    }
public function moveTo ( $ newUrl , $ flags ) { $ qry = new InvokePostMethodQuery ( $ this -> getResourcePath ( ) , "moveto" , array ( "newurl" => $ newUrl , "flags" => $ flags ) ) ; $ this -> getContext ( ) -> addQuery ( $ qry ) ; }
Moves the file to the specified destination URL.
@param string $newUrl The absolute URL or server relative URL of the destination file path to move to.
@param int $flags The bitwise SP.MoveOperations value for how to move the file. Overwrite = 1; AllowBrokenThickets (move even if supporting files are separated from the file) = 8.
Moves the file to the specified destination URL .