Crabtree/SmartHome/IO/FileUtils.csold mode 100755 new mode 100644
@@ -182,6 +182,23 @@ } } /// <summary> /// 删除所有回路设备数据 /// </summary> public static void DeleteAllCommon () { //找出需要显示的设备 var filesList = ReadFiles ().FindAll ((obj) => { string [] str = obj.Split ('_'); return obj.StartsWith ("Equipment_") && str.Length == 5; }); for (int j = 0; j < filesList.Count; j++) { var f = filesList [j]; DeleteFile (f); } } /// <summary> /// Reads the equipment message. /// </summary>