v.licheni.net
/
stack
/
code
/
idfimage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
673b709
)
added counter
master
author
stack
<stack@inventati.org>
Tue, 29 Jan 2013 01:55:13 +0000
(
02:55
+0100)
committer
stack
<stack@inventati.org>
Tue, 29 Jan 2013 01:55:13 +0000
(
02:55
+0100)
idfimage.py
patch
|
blob
|
history
diff --git
a/idfimage.py
b/idfimage.py
index
88436e8
..
bbe52e2
100755
(executable)
--- 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
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)