ftp_base::dirlist()publicWP 1.0

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

Хуков нет.

Возвращает

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

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

$ftp_base = new ftp_base();
$ftp_base->dirlist( $remote );
$remote (обязательный)
-

Код ftp_base::dirlist() WP 6.4.3

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;
}