title: Uploaded a .zip and need to remove the directories where the 4th character in the directory name is not the character S
body: <p>Have a .zip folder that contains folders and files within each folder.</p>
  <pre><code>import zipfile as zf
  files = zf.ZipFile(&quot;FileName.zip&quot;, 'r')
  files.extractall()
  files.close()
  </code></pre>
  <p>Then I need to count the number of folders within the .zip folder so I execute this:</p>
  <pre><code>import os
  os.getcwd()
  count = 0
  d = &quot;FileName&quot;
  for path in os.listdir(d):
          count += 1
  print (count)
  </code></pre>
  <p>Next is where I get stuck... I need to remove the directories where the 4th character in the directory name is not the character S. Each folder within the .zip folder has a file name full of characters.</p>