string path1 = @"C:\temp\";
string path2 = "";
// Create directory temp if it doesn't exist
if (!Directory.Exists(path1))
{
Directory.CreateDirectory(path1);
}
Run Code Online (Sandbox Code Playgroud)
我创建了上面的目录temp,但我不知道如何创建子目录(如temp1)temp?