title: Use the aws client to copy s3 files from a single directory only (non recursively)
body: <p>Consider an aws bucket/key structure along these lines</p>
  
  <pre><code> myBucket/dir1/file1
   myBucket/dir1/file2
   myBucket/dir1/dir2/dir2file1
   myBucket/dir1/dir2/dir2file2
  </code></pre>
  
  <p>When using:</p>
  
  <pre><code> aws s3 cp  --recursive s3://myBucket/dir1/ .
  </code></pre>
  
  <p>Then we will copy down <code>dir2file[1,2]</code> along with <code>file[1,2]</code>.  How to only copy the latter files and not files under subdirectories ?</p>
  
  <p>Responding to a comment:  . I am not interested in putting a <code>--exclude</code> for every subdirectory so this is not a duplicate of <a href="https://stackoverflow.com/questions/39879330/excluding-directories-from-aws-cp">excluding directories from aws cp</a></p>