以下代码始终显示路径操作问题。如何解决?
string pathMaterData = ServerName + "\\MaterData\\";
if (!Directory.Exists(Path.Combine(ServerName, "\\MaterData\\")))
{
Directory.CreateDirectory(Path.Combine(ServerName, "\\MaterData\\"));
}
仅此行代码问题
Directory.CreateDirectory(Path.Combine(ServerName, "\\MaterData\\"));