ftp_base::_list()publicWP 1.0

Метод класса: ftp_base{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ftp_base = new ftp_base();
$ftp_base->_list( $arg, $cmd, $fnction );
$arg **
-
По умолчанию: ""
$cmd **
-
По умолчанию: "LIST"
$fnction **
-
По умолчанию: "_list"

Код ftp_base::_list() WP 6.4.3

function _list($arg="", $cmd="LIST", $fnction="_list") {
	if(!$this->_data_prepare()) return false;
	if(!$this->_exec($cmd.$arg, $fnction)) {
		$this->_data_close();
		return FALSE;
	}
	if(!$this->_checkCode()) {
		$this->_data_close();
		return FALSE;
	}
	$out="";
	if($this->_code<200) {
		$out=$this->_data_read();
		$this->_data_close();
		if(!$this->_readmsg()) return FALSE;
		if(!$this->_checkCode()) return FALSE;
		if($out === FALSE ) return FALSE;
		$out=preg_split("/[".CRLF."]+/", $out, -1, PREG_SPLIT_NO_EMPTY);
//			$this->SendMSG(implode($this->_eol_code[$this->OS_local], $out));
	}
	return $out;
}