debug = 1 if len(sys.argv) == 4 and sys.argv[3] == "-v" else None
+ nfiles = 0
for fpath in getfiles(sys.argv[1]):
verbose("Checking: " + fpath)
+ nfiles += 1
if not checkfimage(fpath):
log(fpath, fdlog)
verbose("ERR not an image: " + fpath)
-
fdlog.close()
+ print ("Checked %d files."% nfiles)