mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 03:16:02 +00:00
SFTP: resuming uploads didn't work
This commit is contained in:
parent
20852adf78
commit
08478feee7
@ -1878,7 +1878,7 @@ class SFTP extends SSH2
|
|||||||
$offset = $start;
|
$offset = $start;
|
||||||
} elseif ($mode & self::RESUME) {
|
} elseif ($mode & self::RESUME) {
|
||||||
// if NET_SFTP_OPEN_APPEND worked as it should _size() wouldn't need to be called
|
// if NET_SFTP_OPEN_APPEND worked as it should _size() wouldn't need to be called
|
||||||
$size = $this->size($remote_file);
|
$size = $this->stat($remote_file)['size'];
|
||||||
$offset = $size !== false ? $size : 0;
|
$offset = $size !== false ? $size : 0;
|
||||||
} else {
|
} else {
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user