mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 19:40:28 +00:00
SFTP: make it so SFTP::RESUME also sets offset of local file
This commit is contained in:
parent
16c67f4399
commit
df3dab7d3f
@ -2440,7 +2440,11 @@ class Net_SFTP extends Net_SSH2
|
||||
if ($local_start >= 0) {
|
||||
fseek($fp, $local_start);
|
||||
$size-= $local_start;
|
||||
} elseif ($mode & NET_SFTP_RESUME) {
|
||||
fseek($fp, $offset);
|
||||
$size-= $offset;
|
||||
}
|
||||
|
||||
} elseif ($dataCallback) {
|
||||
$size = 0;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user