csauls
Joined: 27 Mar 2004 Posts: 278
|
Posted: Sat May 24, 2008 9:58 pm Post subject: Announcing: CashewSFV |
|
|
What: Simple File Verification, aka SFV. A file format used for verifying (usually large) files when distributed across networks or services, or stored to various media, to watch for file corruption -- simply pairs file paths with CRC32 checksums.
Where: module cashew.utils.Sfv
Why: Because a friend of mine wanted it, basically.
How: By instantiating the Sfv class with a filepath. If the path points to an existing SFV file, it is parsed for entries. If not, it will be created. Entries can then be added to the Sfv instance (.add(FilePath) method), validated (with the obvious .validate() method), and the new SFV file saved (with the equally obvious .save() method).
It also has some event hooks (Signal/Slot) to let a host program track what its doing.
CashewSFV should be mostly complete, but hasn't undergone any sort of rigorous testing. Performance is reasonable enough to be useful, but certainly not record-setting. (The common 'cfv' program, for example, definitely beats it in the cases I have tested.) _________________ Chris Nicholson-Sauls |
|