title: Using masks to select subdirectories for transfer with WinSCP
body: <p>I have several directories with varying names <code>x1</code>,<code>x2</code>,<code>x3</code>,etc., each of which contains several subdirectories <code>a</code>,<code>b</code>,<code>c</code>, etc., whose names do not vary between directories <code>x</code>.
  I'm trying to use WinSCP to download only the files in subdirectory <code>a</code> from each, while preserving the directory structure, as shown below.</p>
  
  <pre><code>x1/a/files
  x2/a/files
  x3/a/files
  </code></pre>
  
  <p>I assume it would be simple to do this using the select file mask, for example</p>
  
  <pre><code>x*/a/
  </code></pre>
  
  <p>With the option "Apply to directories" selected. </p>
  
  <p>However this selects nothing, and I can find no variation of the selection mask that will achieve what I want.</p>
  
  <p>What is the correct file mask syntax for what I'm trying to do?</p>
  
  <hr>
  
  <p>In case all the above is unclear, the following shell command is an analogue of what I'm trying to achieve.</p>
  
  <pre><code>cp -r --parents x*/a/ targetdir
  </code></pre>