/trunk/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php |
---|
2129,8 → 2129,8 |
$offset = $start; |
} elseif ($mode & (self::RESUME | self::RESUME_START)) { |
// if NET_SFTP_OPEN_APPEND worked as it should _size() wouldn't need to be called |
$size = $this->stat($remote_file)['size']; |
$offset = $size !== false ? $size : 0; |
$stat = $this->stat($remote_file); |
$offset = $stat !== false && $stat['size'] ? $stat['size'] : 0; |
} else { |
$offset = 0; |
if ($this->version >= 5) { |