Talk:Software Update:Update Management
On recording file size...
It actually isn't necessary to record the file size for files being downloaded. The current size is the size of the file on disk, and the total size is retrieved automatically by the nsIIncrementalDownload object. You really only need to record whether or not the download is partial. nsIIncrementalDownload is happy to tell you that a file is actually complete when you think it is partial, so you can always use it to verify that you have a complete file. My point in all of this is that you might not want to risk having your data store be out-of-sync with respect to the size of the file already partially downloaded. For example, if you don't store that information then it will be easy to recover from a situation where the partially downloaded file has been deleted for some reason (maybe by the user).
--Darin 17:40, 29 Apr 2005 (PDT)