ftp_base::_list
Method of the class: ftp_base{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ftp_base = new ftp_base(); $ftp_base->_list( $arg, $cmd, $fnction );
- $arg
- .
Default:"" - $cmd
- .
Default:"LIST" - $fnction
- .
Default:"_list"
ftp_base::_list() ftp base:: list code WP 7.0
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;
}