From kfm-devel Mon Jul 26 06:47:45 1999 From: Alex Zepeda Date: Mon, 26 Jul 1999 06:47:45 +0000 To: kfm-devel Subject: Re: Kio_file & Rollback X-MARC-Message: https://marc.info/?l=kfm-devel&m=93297172319377 On Sat, 24 Jul 1999, Matt Koss wrote: > Basically, what I have to do is : > > 1. truncate file, which will cut the garbage from the end of file > 2. later, when resuming, compare some data from the end of the truncated file > with a data read by resumed transfer. If they match = http server supports > resuming This should be done for any protocol that supports resuming.. an extension to the mimelnk files perhaps? I think the best way to do this, is save the file as-is, then resume at about 1k or so before the end of the file (so if you download 112k resume at 111k), and then compare that last 1k of data.. if it matches what's downloaded procede, otherwise warn the user and offer to restart from the beginning. This IMO has little if anything to do with kio_file, this belongs in the resume member (if there is one, otherwise get should be extended) of the protocol (say http) that supports the resuming.. - alex You wear guilt, like shackles on your feet, Like a halo in reverse - Depeche Mode