title: Whats the easiest way to ensure folder exist before I do a File.Move?
body: <p>I have a folder structure:</p>
  
  <blockquote>
    <p>C:\Temp    [completely empty]</p>
  </blockquote>
  
  <p>And I have a file that I want to move to</p>
  
  <blockquote>
    <p>C:\Temp\Folder1\MyFile.txt</p>
  </blockquote>
  
  <p>If I perform a File.Move I will get an error saying that this folder doesnt exist.</p>
  
  <p>Is there any C# method that will create all the folders up to that point so:</p>
  
  <blockquote>
    <p>C:\Temp\Folder1\</p>
  </blockquote>
  
  <p>?</p>