mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-29 18:18:39 +00:00
SFTP: use lstat in rawlist instead of stat
This commit is contained in:
parent
6fcd8f3a6e
commit
f7f156b537
@ -924,7 +924,7 @@ class Net_SFTP extends Net_SSH2
|
|||||||
if ($this->use_stat_cache) {
|
if ($this->use_stat_cache) {
|
||||||
$is_directory = is_array($this->_query_stat_cache($this->_realpath($dir . '/' . $key)));
|
$is_directory = is_array($this->_query_stat_cache($this->_realpath($dir . '/' . $key)));
|
||||||
} else {
|
} else {
|
||||||
$stat = $this->stat($dir . '/' . $key);
|
$stat = $this->lstat($dir . '/' . $key);
|
||||||
$is_directory = $stat && $stat['type'] === NET_SFTP_TYPE_DIRECTORY;
|
$is_directory = $stat && $stat['type'] === NET_SFTP_TYPE_DIRECTORY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user