title: Get directory path made by 'os.makedirs' as variable
body: <p>Python2.7</p>
  
  <p>filenamepath is a variable I created which is the file path of a Quicktime mov. Here I am checking if a folder with the filename of the Quicktime mov (but with .folder at end of foldername) exists and if not, os.makedirs is creating one.</p>
  
  <p>How would I then assign this directory path to a variable? I want to then use shutil.move to move the .mov into the .folder.</p>
  
  <pre><code>import os
  
  if not os.path.exists(filenamepath.replace(".mov", ".folder")):
      os.makedirs(filenamepath.replace(".mov", ".folder"))
  </code></pre>