if (!System.IO.Directory.Exists(Server.MapPath("~/UploadedFiles"))) //creating a new directory if not exists
{ System.IO.Directory.CreateDirectory(Server.MapPath("~/UploadedFiles"));
}
if (!System.IO.Directory.Exists(Server.MapPath("~/UploadedFiles"))) //creating a new directory if not exists
{ System.IO.Directory.CreateDirectory(Server.MapPath("~/UploadedFiles"));
}