title: Python directory structure
body: <p>I'm trying to create a directory structure of years containing sub-directories representing months, ie.</p>
  
  <ul>
  <li>2012
  <ul>
  <li>01 </li>
  <li>02</li>
  <li>03</li>
  </ul></li>
  </ul>
  
  <p>My code is like this:</p>
  
  <pre><code>newpath = "test"
  for year in range(2000, 2013):
      for month in range(1, 13):
          newpath += str(year)+'\\'+str(month)
          if not os.path.exists(newpath):
              os.makedirs(newpath)
  </code></pre>
  
  <p>I am getting an error</p>
  
  <pre><code>OSError: [Errno 2] No such file or directory: 'test\\2000\\1
  </code></pre>
  
  <p>Would someone please have some information on this
  Thank you</p>