title: Parse multiple subdirectories specified in multiple lists
body: <p>I have a directory structured as below:</p>
  
  <pre><code>|-- Transcripts
  |   |-- [Time_n]
  |   |   |-- [Group_n]
  |   |   |   |-- file_1.txt
  |   |   |   |-- ...
  |   |   |   |-- file_n_n.txt
  |   |...
  |
  </code></pre>
  
  <p>To parse every file in all subdirectories, where there are multiple <code>Times</code> with multiple <code>Groups</code>, I would just use:</p>
  
  <pre><code>import glob
  
  path = 'Transcripts/***/**/*.txt'
  files = glob.glob(path, recursive=True)
  for file in files:
      print(file)
  </code></pre>
  
  <p>However, if I want to specify only certain <code>Times</code> and <code>Groups</code>, can I do this from <code>glob</code>, or can I only do it in the loop below?</p>
  
  <p>Example collections:</p>
  
  <pre><code>times = ['Time1', 'Time3']
  groups = ['Group2', 'Group4']
  </code></pre>
  
  <p>This should only loop through these subdirectories:</p>
  
  <pre><code>/Transcripts/Time1/Group2/
  /Transcripts/Time1/Group4/
  /Transcripts/Time3/Group2/
  /Transcripts/Time3/Group4/
  </code></pre>