title: Moving a folder (Directory) from one location to another - misbehavior
body: <p>I want to move a directory from one location to another using C# .NET. I used <code>Directory.Move</code> or even DirectoryInfo (with MoveTo) this simple way:</p>
  
  <pre><code>// source is: "C:\Songs\Elvis my Man"
  // newLocation is: "C:\Songs\Elvis"
  
  try
  {
      // Previous command was: Directory.Move(source, newLocation);
      DirectoryInfo dir = new DirectoryInfo(source);
      dir.MoveTo(newLocation);
  }
  catch (Exception e)
  {
      Console.WriteLine("Error: "+ e.Message);
  }
  </code></pre>
  
  <p>But action that's being done (for both cases) is renaming the folder name from 'source' to 'newLocation' </p>
  
  <p><strong><em>What I expected?</em></strong> that folder "Elvis my man" will be now in "Elvis" folder.</p>
  
  <p><em><strong>What has happened?</em></strong> "Elvis my man" was changed to "Elvis" (Renamed). If the directory "Elvis" is already exists, it can't change it to "Elvis" (cause he can't make a duplicate names), therefore I get an exception saying that.</p>
  
  <p>What am I doing wrong??</p>
  
  <p>Many thanks!!!</p>