From 57e150488cd787641cbf4b70deb8164a95813569 Mon Sep 17 00:00:00 2001 From: stack Date: Tue, 29 Jan 2013 02:55:13 +0100 Subject: [PATCH] added counter --- idfimage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/idfimage.py b/idfimage.py index 88436e8..bbe52e2 100755 --- a/idfimage.py +++ b/idfimage.py @@ -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) -- 2.20.1