📜  如果目录不存在则创建目录 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:44.944000             🧑  作者: Mango

代码示例1
string currentPath = Directory.GetCurrentDirectory();
if (!Directory.Exists(Path.Combine(currentPath, "ACH")))
    Directory.CreateDirectory(Path.Combine(currentPath, "ACH"));
//at this point your folder should exist