WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

ftp_base::mget() public WP 1.0

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

Хуков нет.

Возвращает

Null. Ничего.

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

$ftp_base = new ftp_base();
$ftp_base->mget( $remote, $local, $continious );

Код ftp_base::mget() WP 5.5.1

wp-admin/includes/class-ftp.php
<?php
function mget($remote, $local=".", $continious=false) {
	$list=$this->rawlist($remote, "-lA");
	if($list===false) {
		$this->PushError("mget","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents");
		return FALSE;
	}
	if(empty($list)) return true;
	if(!@file_exists($local)) {
		if(!@mkdir($local)) {
			$this->PushError("mget","can't create local folder", "Cannot create folder \"".$local."\"");
			return FALSE;
		}
	}
	foreach($list as $k=>$v) {
		$list[$k]=$this->parselisting($v);
		if( ! $list[$k] or $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]);
	}
	$ret=true;
	foreach($list as $el) {
		if($el["type"]=="d") {
			if(!$this->mget($remote."/".$el["name"], $local."/".$el["name"], $continious)) {
				$this->PushError("mget", "can't copy folder", "Can't copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");
				$ret=false;
				if(!$continious) break;
			}
		} else {
			if(!$this->get($remote."/".$el["name"], $local."/".$el["name"])) {
				$this->PushError("mget", "can't copy file", "Can't copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");
				$ret=false;
				if(!$continious) break;
			}
		}
		@chmod($local."/".$el["name"], $el["perms"]);
		$t=strtotime($el["date"]);
		if($t!==-1 and $t!==false) @touch($local."/".$el["name"], $t);
	}
	return $ret;
}