mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-09-28 15:19:02 +00:00
SFTP: Use stat instead of lstat for size()
This commit is contained in:
parent
51d106b6ec
commit
0692d42980
@ -985,7 +985,7 @@ class Net_SFTP extends Net_SSH2 {
|
||||
*/
|
||||
function _size($filename)
|
||||
{
|
||||
$result = $this->_stat($filename, NET_SFTP_LSTAT);
|
||||
$result = $this->_stat($filename, NET_SFTP_STAT);
|
||||
if ($result === false) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user