Check to see if a Directory Exists in C Sharp

From RiceFamily Wiki
Revision as of 19:56, 12 April 2015 by Rice0009 (Talk | contribs) (Created page with "string path = @"C:\MP_Upload"; if(!Directory.Exists(path)) :{ ::Directory.CreateDirectory(path); :}")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

string path = @"C:\MP_Upload"; if(!Directory.Exists(path))

{
Directory.CreateDirectory(path);
}