摘要:
/// <summary> /// 清空文件夹 /// </summary> /// <param name="dir"></param> public void DeleteFolder(string dir) { foreach (string d in Directory.GetFileSystemEntries(dir)) { if (File.Exists(d)) { FileInfo fi = new FileInfo(d); if (fi.Attributes.ToString().IndexOf("R 阅读全文