Showing posts with label System.IO.Directory. Show all posts
Showing posts with label System.IO.Directory. Show all posts

Tuesday, November 28, 2017

C#, create folder dynamically or check folder exists

string subPath ="ImagesPath"; // your code goes here
bool IsExists = System.IO.Directory.Exists(Server.MapPath(subPath));
if(!IsExi System.IO.Directory.CreateDirectory sts)
System.IO.Directory.CreateDirectory(Server.MapPath(subPath));