Exemple #1
0
 /// <summary>
 /// 删除文件夹 并记录相关信息
 /// </summary>
 /// <param name="errorInfo">删除文件夹的原因</param>
 /// <param name="dirPath"></param>
 private void DeleteHeartDir(string errorInfo, string dirPath)
 {
     if (Directory.Exists(dirPath))
     {
         Directory.Delete(dirPath, true);
         LogServer.WriteInfoLog(string.Format("删除心跳文件夹{0}错误:{1}{0}路径:{2}", Environment.NewLine, errorInfo, dirPath));
     }
 }