lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.08k stars 159 forks source link

[BUG] mirror --continue not working for abnormal interupt using pget chunk download #688

Open wtwangcb opened 1 year ago

wtwangcb commented 1 year ago

When mirroring using pget, if a big file being downloaded got interrupted because of network/connection problem, the mirror command thinks the big file has already complete download when actually is not (XXX.pget.status still present), Thus it changes the timestamp of the incomplete file to that of returned by server. So next time when you issue the mirror --continue to resume the mirror, lftp incorrectly thought the big file as complete download and delete its corresponding pget.status, leaving a broken, incomplete file that is hard to spot/find.