DirectoryInfo & Path.GetDirectoryName - Exists method returns false while exists
<p>I would like to check whether a folder exists or not if not create. I'm sure this folder exists, but for some reason I get "false" when I check with "Exists" method.</p>

<p>The only reason I think could be because of the W: drive?
I moved this application to production site and even there it returns false.</p>

<p>while I'm type in Windows explorer on my localhost and on the server "W:/Webs/ASPPages/cropper/uploads" it opens this folder.  So my localhost and IIS server has W: mapping.</p>

<p>for test I tried to create the folder then it says can't find the path...</p>

<pre><code>userFolderName = @"W:/Webs/ASPPages/cropper/uploads"

//I also tried @"W:\Webs\ASPPages\cropper\uploads\"

//I also tried @"W:\Webs\ASPPages\cropper\uploads" 

//I also tried "W:\\Webs\\ASPPages\\cropper\\uploads" 



DirectoryInfo dirInfo = new DirectoryInfo(userFolderName);

if (dirInfo.Exists) //returns false

var diPath = new DirectoryInfo(Path.GetDirectoryName(userFolderName));

if(diPath.Exists)  //returns false
</code></pre>
