title: Python Creating Folders Based On List Objects
body: <p>I am trying to write a script, that will look for folders in the current directory, once found, it will check to see if the folder contains the following folders: 'Contracts' &amp; 'Other Documents', if these are found the folder can be ignored. If not, I need to have the script make these folders.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>import os
  import sys
  
  folders_to_be_made = ['Contracts', 'Other Documents']
  
  for folder in os.listdir('.'):
      if os.path.isdir(folder):
          filepath = os.path.join(os.getcwd(), folder)
          print filepath
  </code></pre>
  
  <p>Can anyone please advise on how I would go about creating the folder if missing.</p>
  
  <p>Thank you.</p>