mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +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) {
|
if ($local_start >= 0) {
|
||||||
fseek($fp, $local_start);
|
fseek($fp, $local_start);
|
||||||
$size-= $local_start;
|
$size-= $local_start;
|
||||||
|
} elseif ($mode & NET_SFTP_RESUME) {
|
||||||
|
fseek($fp, $offset);
|
||||||
|
$size-= $offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
} elseif ($dataCallback) {
|
} elseif ($dataCallback) {
|
||||||
$size = 0;
|
$size = 0;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user