mirror of
https://github.com/danog/tgseclib.git
synced 2025-01-22 05:51:20 +01:00
SFTP: don't update stat cache when it's been disabled
This commit is contained in:
parent
61af2be8f9
commit
109ae38e48
@ -1062,6 +1062,10 @@ class Net_SFTP extends Net_SSH2
|
||||
*/
|
||||
function _update_stat_cache($path, $value)
|
||||
{
|
||||
if ($this->use_stat_cache === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
// preg_replace('#^/|/(?=/)|/$#', '', $dir) == str_replace('//', '/', trim($path, '/'))
|
||||
$dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user