WordPress at Your Fingertips
function is not described

ftp_base::dirlist() public WP 1.0

{} It's a method of the class: ftp_base{}

No Hooks.

Return

null. Nothing.

Usage

$ftp_base = new ftp_base();
$ftp_base->dirlist( $remote );
$remote (required)
-

Code of ftp_base::dirlist() WP 5.8.2

function dirlist($remote) {
	$list=$this->rawlist($remote, "-la");
	if($list===false) {
		$this->PushError("dirlist","can't read remote folder list", "Can't 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;
}