SFTP: don't update stat cache when it's been disabled

This commit is contained in:
terrafrost 2015-07-04 12:19:35 -05:00
parent 61af2be8f9
commit 109ae38e48

View File

@ -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));