mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 21:17:53 +00:00
SFTP: update how recursive delete's update stat cache
This commit is contained in:
parent
52aeb2ea3f
commit
c460e511a0
@ -2218,6 +2218,7 @@ class Net_SFTP extends Net_SSH2
|
||||
if (!$this->_send_sftp_packet(NET_SFTP_REMOVE, pack('Na*', strlen($temp), $temp))) {
|
||||
return false;
|
||||
}
|
||||
$this->_remove_from_stat_cache($temp);
|
||||
|
||||
$i++;
|
||||
|
||||
@ -2228,12 +2229,12 @@ class Net_SFTP extends Net_SSH2
|
||||
$i = 0;
|
||||
}
|
||||
}
|
||||
$this->_remove_from_stat_cache($path);
|
||||
}
|
||||
|
||||
if (!$this->_send_sftp_packet(NET_SFTP_RMDIR, pack('Na*', strlen($path), $path))) {
|
||||
return false;
|
||||
}
|
||||
$this->_remove_from_stat_cache($path);
|
||||
|
||||
$i++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user