added counter master
authorstack <stack@inventati.org>
Tue, 29 Jan 2013 01:55:13 +0000 (02:55 +0100)
committerstack <stack@inventati.org>
Tue, 29 Jan 2013 01:55:13 +0000 (02:55 +0100)
idfimage.py

index 88436e8..bbe52e2 100755 (executable)
@@ -52,10 +52,12 @@ if __name__ == "__main__":
 
     debug = 1 if len(sys.argv) == 4 and sys.argv[3] == "-v" else None
 
 
     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)
     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)
         if not checkfimage(fpath):
             log(fpath, fdlog)
             verbose("ERR not an image: " + fpath)
-
     fdlog.close()
     fdlog.close()
+    print ("Checked %d files."% nfiles)