def file_larger_than(s, args):
tb = traceback.extract_stack()
tb = tb[-1]
position = "%s:%s" % (tb[2], tb[1])
size = args['byte']
if s.file_size > size:
return RuleResult(position,
result=Result.unknown,
reason="Datei hat mehr als %d bytes"
% size,
further_analysis=True)
return RuleResult(position,
result=Result.ignored,
reason="Datei ist nur %d bytes lang"
% s.file_size,
further_analysis=False)
评论列表
文章目录