ftp_base::dirlist
Метод класса: ftp_base{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ftp_base = new ftp_base(); $ftp_base->dirlist( $remote );
- $remote(обязательный)
- .
Код ftp_base::dirlist() ftp base::dirlist WP 7.0
function dirlist($remote) {
$list=$this->rawlist($remote, "-la");
if($list===false) {
$this->PushError("dirlist","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents");
return false;
}
$dirlist = array();
foreach($list as $k=>$v) {
$entry=$this->parselisting($v);
if ( empty($entry) )
continue;
if($entry["name"]=="." or $entry["name"]=="..")
continue;
$dirlist[$entry['name']] = $entry;
}
return $dirlist;
}