Check to see if a Directory Exists in C Sharp

From RiceFamily Wiki
Jump to: navigation, search

string path = @"C:\MP_Upload";

if(!Directory.Exists(path))

{
Directory.CreateDirectory(path);
}