mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 04:57:53 +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) {
|
||||
$is_directory = is_array($this->_query_stat_cache($this->_realpath($dir . '/' . $key)));
|
||||
} else {
|
||||
$stat = $this->stat($dir . '/' . $key);
|
||||
$stat = $this->lstat($dir . '/' . $key);
|
||||
$is_directory = $stat && $stat['type'] === NET_SFTP_TYPE_DIRECTORY;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user