SFTP: make it so SFTP::RESUME also sets offset of local file

This commit is contained in:
terrafrost 2023-07-02 10:44:51 -05:00
parent 16c67f4399
commit df3dab7d3f

View File

@ -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 {