Programatically create directory for new user on web site
-
29-10-2019 - |
Question
I just uploaded my site to Go Daddy and have code that creates a directory dynamically based on a user id when the user creates an account on my site. It's not creating the directory so I suppose I need to set permissions in some way but I don't have control over IIS since my site's being hosted. How do I programatically set permissions?
if(Directory.Exists(path))
return true;
try
{
Directory.CreateDirectory(path);
}
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow