I want to use a code to create folders for each user o make login and who already have folder dont create. someone can help me?
I got a code in Java script to create folders but i dont know how use it for my project because i am using windows store in c#.
this is the code in Java script
try{
String strDirectoy ="test";
String strManyDirectories="dir1"+File.Separator+"dir2"+File.Separator+"dir3";
// Create one directory
boolean success = (new File(strDirectoy)).mkdir();
if (success) {
System.out.println("Directory: " + strDirectoy + " created");
}
// Create multiple directories
success = (new File(strManyDirectories)).mkdirs();
if (success) {
System.out.println("Directories: " + strManyDirectories + " created");
}
}catch (Exception e){//Catch exception if any
System.err.println("Error: " + e.getMessage());
}