<table><tr><td style="">sitter created this revision.<br />sitter added reviewers: ngraham, feverfew.<br />Herald added projects: Dolphin, Frameworks.<br />Herald added subscribers: kfm-devel, kde-frameworks-devel.<br />sitter requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27872">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>the previous condition checked if the final target path size was >0,<br />
which it would only be when the file already exists (i.e. overwrite) in<br />
all other scenarios it would always be false and as such resuming wouldn't<br />
work. what we actually want to check is whether the part file is >0 (i.e.<br />
there's actual pending bytes to resume from).</p>
<p>this makes resuming work when copying remote->local</p>
<p>CCBUG: 417645</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">create file of suitably large size (1g)</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">split -b somesize</tt> the file into two segments</li>
<li class="remarkup-list-item">copy first segment to /tmp/file.part</li>
<li class="remarkup-list-item">connect to /tmp over sftp and copy the file there</li>
<li class="remarkup-list-item">progress starts at 50% and resulting file is same as input file</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R320 KIO Extras</div></div></div><br /><div><strong>BRANCH</strong><div><div>sftp-resume-to-local</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27872">https://phabricator.kde.org/D27872</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>sftp/kio_sftp.cpp</div></div></div><br /><div><strong>To: </strong>sitter, ngraham, feverfew<br /><strong>Cc: </strong>kde-frameworks-devel, kfm-devel, pberestov, iasensio, fprice, LeGast00n, cblack, MrPepe, fbampaloukas, alexde, GB_2, Codezela, feverfew, meven, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov<br /></div>