//查看是否有指定路径
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
//获取指定路径下的所有文件
DirectoryInfo di = new DirectoryInfo(path);
FileInfo[] dir = di.GetFiles();
删除指定路径
if (Directory.Exists(path))
Directory.Delete(path, true);