摘要:
/// <summary>/// 清空指定的文件夹,但不删除文件夹/// </summary>/// <param name="dir"></param>public static void DeleteFolder(string dir){ foreach (string d in Directory.GetFileSystemEntries(dir)){ if (File.Exists(d)){ FileInfo fi = new FileInfo(d);if (fi.Attributes.ToString().Index 阅读全文