【发布时间】:2013-06-17 02:53:16
【问题描述】:
我使用:
public const string WbPlanDirPath = "\\SavedWbPlans";
if (!Directory.Exists(WbPlanDirPath))
{
System.IO.Directory.CreateDirectory(WbPlanDirPath);
}
创建一个目录。虽然,它似乎工作正常(没有抛出异常)我在文件系统的任何地方都找不到文件夹/目录。我是不是做错了什么?
【问题讨论】:
-
尝试打印您创建的目录的路径。
-
您也可以使用
(new DirectoryInfo(WbPlanDirPath)).FullName通过控制台/消息框打印目录