title: Unabel to create subfolder in python
body: <p>I am trying to create a folder(exports) and a subfolder(file_name) using the below code. 
  Every time I run this code, I get an error:</p>
  
  <blockquote>
    <p>[WinError 3]The system cannot find the path specified: C:/temp/postgre_exports/filename.</p>
  </blockquote>
  
  <p><code>dim_file</code> table contains the file details.</p>
  
  <p><code>df.iat[0,5]</code> will give the actual file_name that I want to pass to variable <code>mypath</code></p>
  
  <pre><code>df = pd.read_sql_query("SELECT * FROM qwerty.dim_file", conn)
  
  file_name=df.iat[0,5]
  
  mypath="C:/temp/exports/%s"%file_name
  
  if not os.path.exists(mypath):
      os.makedirs(mypath)
  </code></pre>