J
Jason
Hello
I've got a function in which I'm going to pass in a string which is a folder
path, and I want to get the size of that folder. When I step through the
code, the path I pass in is correct, however the compiler vc2005 never
executes the code in the if statements. If I watch my local window, i never
see the local variables, any ideas????
public void GetfolderProperties(string path)
{
if (Directory.Exists(path)) // the compiler executes this statement
{
DirectoryInfo dir = new DirectoryInfo(path); // the compiler dosen't
executes this statement
FileSystemInfo[] FSInfo = dir.GetFileSystemInfos(); // the compiler dosen't
executes this statement
}
}
I've got a function in which I'm going to pass in a string which is a folder
path, and I want to get the size of that folder. When I step through the
code, the path I pass in is correct, however the compiler vc2005 never
executes the code in the if statements. If I watch my local window, i never
see the local variables, any ideas????
public void GetfolderProperties(string path)
{
if (Directory.Exists(path)) // the compiler executes this statement
{
DirectoryInfo dir = new DirectoryInfo(path); // the compiler dosen't
executes this statement
FileSystemInfo[] FSInfo = dir.GetFileSystemInfos(); // the compiler dosen't
executes this statement
}
}