SFTP: use lstat in rawlist instead of stat

This commit is contained in:
terrafrost 2018-08-18 15:02:42 -05:00
parent 6fcd8f3a6e
commit f7f156b537
1 changed files with 1 additions and 1 deletions

View File

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