mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-05 05:18:28 +00:00
Merge pull request #730 from terrafrost/disable-stat-cache-1.0
SFTP: don't update stat cache when it's been disabled * terrafrost/disable-stat-cache-1.0: SFTP: don't update stat cache when it's been disabled
This commit is contained in:
commit
7f1dfba50d
@ -1062,6 +1062,10 @@ class Net_SFTP extends Net_SSH2
|
|||||||
*/
|
*/
|
||||||
function _update_stat_cache($path, $value)
|
function _update_stat_cache($path, $value)
|
||||||
{
|
{
|
||||||
|
if ($this->use_stat_cache === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// preg_replace('#^/|/(?=/)|/$#', '', $dir) == str_replace('//', '/', trim($path, '/'))
|
// preg_replace('#^/|/(?=/)|/$#', '', $dir) == str_replace('//', '/', trim($path, '/'))
|
||||||
$dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path));
|
$dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user