为什么 Directory.CreateDirectory 在尝试创建以下路径时会抛出 DirectoryNotFoundException?
"c:\\temp\\aips\\data\\prn"
带有指示它的消息could not find a part of the path "c:\"
。
然而,如果通过以下路径"c:\\temp\\aips\\data\\power"
,它会成功返回。
路径直接从 Visual Studio 调试器复制,因此使用反斜杠分隔符。
在我的系统上,该文件夹c:\temp\aips\data
已经存在。