判断文件夹是否存在
var path = Path.Combine(Directory.GetCurrentDirectory(), "upload", "image"); if (Directory.Exists(path)){ //文件夹存在 }
这篇文档对您是否有帮助?