Access to path is denied when moving a directory, but is able to create folders in the directory
<p>I am writting a simple program that moves Directory A in C Drive to Directory B in C Drive by using the following code</p>

<pre><code>System.IO.Directory.Move(DirectoryA, DirectoryB);
</code></pre>

<p>Strangely, it throws an exception, saying the Access to Directory A is denied.</p>

<p>However, then I tried creating a folder in Directory A, by <code>System.IO.Directory.CreateDirectory(DirectoryA+ @"\test");</code>. I had no problem creating the test Directory within DirectoryA, so I guess it is not a permission problem.  </p>

<p>So I have no idea what the problem is, the code was working before, so does anyone have any idea at all, thanks :)</p>
