Right I will be honest as to not understanding what changed that is causing this because you are correct:
string filePath = @"D:\Folder\somefile.txt";
File.Exists(filePath) == TRUE // this is not happening
I took this a step further and did:
try
{
var filePath = Path.GetFullPath("E:\\Folder\\somefile.txt");
File.OpenRead(filePath);
}
catch (Exception ex)
{ }
The exception that is thrown is:
NotSupportedException: The given path's format is not supported.
This does work so give this a go:
var filePath = Path.GetFullPath("D:\\Folder\\somefile.txt");
File.Exists(filePath) == TRUE // this does work
Alternatively, you could use this as well:
var path = @"D:\Folder";
var fileName = "somefile.txt";
var filePath = Path.Combine(path, fileName);
File.Exists(filePath) == TRUE // this does work