public function copyTo($strNewUrl, $bOverWrite)
    {
        $qry = new InvokePostMethodQuery($this->getResourcePath(), "copyto", array(
            "strnewurl" => $strNewUrl,
            "boverwrite" => $bOverWrite
        ));
        $this->getContext()->addQuery($qry);
    }
public function copyTo($strNewUrl, $bOverWrite)
    {
        $qry = new InvokePostMethodQuery($this->getResourcePath(), "copyto", array(
            "strnewurl" => $strNewUrl,
            "boverwrite" => $bOverWrite
        ));
        $this->getContext()->addQuery($qry);
    }
public function copyTo ( $ strNewUrl , $ bOverWrite ) { $ qry = new InvokePostMethodQuery ( $ this -> getResourcePath ( ) , "copyto" , array ( "strnewurl" => $ strNewUrl , "boverwrite" => $ bOverWrite ) ) ; $ this -> getContext ( ) -> addQuery ( $ qry ) ; }
Copies the file to the destination URL.
@param string $strNewUrl The absolute URL or server relative URL of the destination file path to copy to.
@param bool $bOverWrite true to overwrite a file with the same name in the same location; otherwise false.
Copies the file to the destination URL .