public function move(string $old, string $new){
    if (
      !empty($old) &&
      !empty($new) &&
      ($old = $this->checkFilePath($old)) &&
      ftp_rename($this->cn, $old, $new)
    ){
      return true;
    }
    return false;
  }
public function move(string $old, string $new){
    if (
      !empty($old) &&
      !empty($new) &&
      ($old = $this->checkFilePath($old)) &&
      ftp_rename($this->cn, $old, $new)
    ){
      return true;
    }
    return false;
  }
public function move ( string $ old , string $ new ) { if ( ! empty ( $ old ) && ! empty ( $ new ) && ( $ old = $ this -> checkFilePath ( $ old ) ) && ftp_rename ( $ this -> cn , $ old , $ new ) ) { return true ; } return false ; }
Moves or renames a file on the server

@param string $old The old file full path
@param string $new The new file full path
@return bool
Moves or renames a file on the server