mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 16:15:52 +00:00
SFTP: update state cache accordingly when file becomes directory
This commit is contained in:
parent
46b5bd413a
commit
30a11a3951
@ -1202,7 +1202,7 @@ class Net_SFTP extends Net_SSH2
|
|||||||
$temp[$dir] = array();
|
$temp[$dir] = array();
|
||||||
}
|
}
|
||||||
if ($i === $max) {
|
if ($i === $max) {
|
||||||
if (is_object($temp[$dir])) {
|
if (is_object($temp[$dir]) && is_object($value)) {
|
||||||
if (!isset($value->stat) && isset($temp[$dir]->stat)) {
|
if (!isset($value->stat) && isset($temp[$dir]->stat)) {
|
||||||
$value->stat = $temp[$dir]->stat;
|
$value->stat = $temp[$dir]->stat;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user