mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 10:15:14 +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))) {
|
if (!$this->_send_sftp_packet(NET_SFTP_REMOVE, pack('Na*', strlen($temp), $temp))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$this->_remove_from_stat_cache($temp);
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|
||||||
@ -2228,12 +2229,12 @@ class Net_SFTP extends Net_SSH2
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->_remove_from_stat_cache($path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->_send_sftp_packet(NET_SFTP_RMDIR, pack('Na*', strlen($path), $path))) {
|
if (!$this->_send_sftp_packet(NET_SFTP_RMDIR, pack('Na*', strlen($path), $path))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$this->_remove_from_stat_cache($path);
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user