title: OSError: [Errno 2] No such file or directory: '39'
body: <p>I have the following piece of code to make a directory on particular conditions.</p>
  
  <pre><code>def create_analysis_folder(self, analysis_id, has_headers):
  
          path = None
          if not os.path.exists(analysis_id):
              os.makedirs(analysis_id)    
          os.chdir(analysis_id)
          if has_headers == False:
              path = os.getcwd() + '/html'
              return path
          else:
              os.makedirs('html')
              os.chdir('html')
              shutil.copy("../../RequestURL.js", os.getcwd()) 
              return os.getcwd()
  </code></pre>
  
  <p>Upon execution this gives me an error in line</p>
  
  <p><code>os.makedirs(analysis_id)</code> </p>
  
  <p>The error says <code>OSError: [Errno 2] No such file or directory: '39'</code>. But I am in the processor creating a directory then why am I getting an error like this.</p>