added counter
[stack/code/idfimage.git] / 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
 
+    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)