mirror of
https://github.com/danog/tgseclib.git
synced 2025-01-21 21:41:14 +01: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…
x
Reference in New Issue
Block a user