asp.net中创建新目录问题:Directory.CreateDirectory
asp.net,某路径news下有一文件abc.html,如果在news下新建名为abc.html的目录,则系统报错:当文件已存在时,无法创建该文件。如果,删除abc.html后再创建目录,则没有问题,如何解决?
using System.IO;
....
string newPath = "c:\\webroot\\news\\abc.html";
Directory.CreateDirectory(newPath);
....