def check_directory_tree(base_path, file_check, exclusions=set(), pattern='*.py'):
 if (not base_path):
  return
 for (root, dirs, files) in walk(base_path):
  check_files(glob(join(root, pattern)), file_check, exclusions)

def check_directory_tree ( base_path , file_check , exclusions = set ( ) , pattern = '*.py' ) : if ( not base_path ) : return for ( root , dirs , files ) in walk ( base_path ) : check_files ( glob ( join ( root , pattern ) ) , file_check , exclusions )
checks all files in the directory tree with the file_check function provided .