Accept filtered_walk arguments directly in convenience iterators

Issue #15 open
Nick Coghlan
repo owner created an issue

A recursive grep with walkdir currently needs to be written one of the following:

file_paths(filtered_walk(top, included_files=["*.py"]))
file_paths(include_files(os.walk(top), "*.py"))

It would be far more attractive if this could be written:

file_paths(top, included_files=["*.py"])

Even better would be if multiple directories could be scanned just by doing:

file_paths(dir1, dir2, included_files=["*.py"])

Comments (2)

  1. Log in to comment