Personal tools
You are here: Home Projects checkSFV
Document Actions

checkSFV.py

by Howard The Duck last modified 2005-10-28 06:34 PM

The script has 2 modes, standalone and prepared for pure-uploadscript

Standalone

Simply run it in a directory that contains a .sfv file. It will automatically find the .sfv files, check the sums and create a file looking like 5fvcheck_2_ok_1_failed_1_missing.txt.

pure-uploadscript

When called by pure-uploadscript the script will only scan the files it has not sucessfully checked yet. SFV files tend to be uploaded first, rescanning existing files after a new file arrived creates unnecessary load. The script will also set the correct user:group for the output file created. To manually start a check simply upload an empty file called sfvcheck - this is useful when you want to check existing directories and you have no shell access to the machine.

Limitations

It internally converts all filenames to lowercase before comparing the filenames from the filesystem against the filenames in the .sfv files. The reason is that most .sfv files are messy and ment to be used on windows, which is case-insensitive. This hasn't caused trouble since 2003 that's why I kept it like that.

download

« July 2008 »
Su Mo Tu We Th Fr Sa
12345
6789101112
13141516171819
20212223242526
2728293031
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: