mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 16:15:52 +00:00
Merge branch '2.0'
This commit is contained in:
commit
aa8a30cd81
@ -800,6 +800,7 @@ class SFTP extends SSH2
|
|||||||
}
|
}
|
||||||
if (is_array($this->query_stat_cache($this->realpath($dir . '/' . $value)))) {
|
if (is_array($this->query_stat_cache($this->realpath($dir . '/' . $value)))) {
|
||||||
$temp = $this->nlist_helper($dir . '/' . $value, true, $relativeDir . $value . '/');
|
$temp = $this->nlist_helper($dir . '/' . $value, true, $relativeDir . $value . '/');
|
||||||
|
$temp = is_array($temp) ? $temp : [];
|
||||||
$result = array_merge($result, $temp);
|
$result = array_merge($result, $temp);
|
||||||
} else {
|
} else {
|
||||||
$result[] = $relativeDir . $value;
|
$result[] = $relativeDir . $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user