ftp_base::rename() –

You appear to be a bot. Output may be restricted

Description

Usage

ftp_base::rename( $from, $to );

Parameters

$from
( mixed ) required
$to
( mixed ) required

Returns

void

Source

File name: wordpress/wp-admin/includes/class-ftp.php
Lines:

1 to 9 of 9
  function rename($from, $to) {
    if(!$this->_exec("RNFR ".$from, "rename")) return FALSE;
    if(!$this->ftp_base::_checkCode()) return FALSE;
    if($this->_code==350) {
      if(!$this->_exec("RNTO ".$to, "rename")) return FALSE;
      if(!$this->ftp_base::_checkCode()) return FALSE;
    } else return FALSE;
    return TRUE;
  }
 

 View on GitHub View on Trac