mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 12:32:45 +00:00
Merge branch '3.0'
This commit is contained in:
commit
2d33d7b0dc
@ -1837,7 +1837,7 @@ class SFTP extends SSH2
|
|||||||
|
|
||||||
if ($start >= 0) {
|
if ($start >= 0) {
|
||||||
$offset = $start;
|
$offset = $start;
|
||||||
} elseif ($mode & self::RESUME) {
|
} elseif ($mode & (self::RESUME | self::RESUME_START)) {
|
||||||
// if OpenFlag::APPEND worked as it should _size() wouldn't need to be called
|
// if OpenFlag::APPEND worked as it should _size() wouldn't need to be called
|
||||||
$size = $this->stat($remote_file)['size'];
|
$size = $this->stat($remote_file)['size'];
|
||||||
$offset = $size !== false ? $size : 0;
|
$offset = $size !== false ? $size : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user