private bool CheckNeedProcess(SystemConfig config) { bool result=false; if (FileHelper.CheckDirExists(config.MonitorPath)) { DirectoryInfo dir = new DirectoryInfo(config.MonitorPath); if (dir.GetFiles().Length > 0) { result=true; } } return result; }
private string ZipFiles(SystemConfig config) { string filename=Path.Combine(config.BakPath, regconfig.Company + System.DateTime.Now.ToString("yyyyMMddHHmmss") + ".rar"); FileHelper.ZipDir(config.MonitorPath,filename , "htcompany"); return filename; }