title: Search for files that match any strings from a list?
body: <p>I want to recursively walk through a directory, find the files that match <em>any</em> of the strings in a given list, and then copy these files to another folder. I thought the any() function would accomplish this, but I get a TypeError that it expected a string, not a list. Is there a more elegant way to do this?</p>
  <pre><code>string_to_match = ['apple.txt', 'pear.txt', 'banana.txt']
  
  for root, subdirs, filename in os.walk(source_dir)
      if any(s in filename for s in string_to_match):
          shutil.copy(filename, destination_dir)
          print(filename)
  </code></pre>
  <p>I know glob.glob can work well for finding files that match a specific string or pattern, but I haven't been able to find an answer that allows for multiple matches.</p>