Support max_matches when multiple in directory.

pull/83153/head
Colin Nolan 1 month ago
parent d75cebb1f8
commit 1d440dca7d

@ -602,6 +602,10 @@ def main():
r.update(statinfo(st))
filelist.append(r)
if len(filelist) == params["max_matches"]:
# Breaks out of directory files loop only
break
if not params['recurse'] or len(filelist) == params["max_matches"]:
break
except Exception as e:

Loading…
Cancel
Save