C# 判断文件/文件夹 是否存在

C# 判断文件/文件夹 是否存在

1、判断文件夹是否存在//spath:文件夹路径名 using System.IO;if (Directory.Exists(spath)){}else{ ……