ftp_base::SetType() –

You appear to be a bot. Output may be restricted

Description

Usage

ftp_base::SetType( $mode );

Parameters

$mode
( mixed ) optional default: FTP_AUTOASCII –

Returns

void

Source

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

1 to 9 of 9
  function SetType($mode=FTP_AUTOASCII) {
    if(!in_array($mode, $this->AuthorizedTransferMode)) {
      $this->ftp_base::SendMSG("Wrong type");
      return FALSE;
    }
    $this->_type=$mode;
    $this->ftp_base::SendMSG("Transfer type: ".($this->_type==FTP_BINARY?"binary":($this->_type==FTP_ASCII?"ASCII":"auto ASCII") ) );
    return TRUE;
  }
 

 View on GitHub View on Trac