output.write('%d files (out of %d) were not found at "%s"\n'% \
(len(bad),len(r),args.directory))
output.write('%d files (out of %d) were not found at "%s"\n'%
(len(bad),len(r),args.directory))
return0
defadd_command(subparsers):
"""Add specific subcommands that the action "checkfiles" can use"""
...
...
@@ -62,7 +62,7 @@ def add_command(subparsers):
db=Database()
ifnotdb.is_valid():
protocols=('waiting','for','database','creation')
protocols=('waiting','for','database','creation')
clients=tuple()
else:
protocols=[k.nameforkindb.protocols()]
...
...
@@ -77,6 +77,6 @@ def add_command(subparsers):
parser.add_argument('-l','--light',dest="light",default='',help="if given, this value will limit the check to those files shot under a given lighting. (defaults to '%(default)s')",choices=db.lights())
parser.add_argument('-C','--client',dest="client",default=None,type=int,help="if given, limits the dump to a particular client (defaults to '%(default)s')",choices=clients)