// Token: 0x0600004D RID: 77 RVA: 0x00004C10 File Offset: 0x00002E10 public static long DirSize(string strPath) { long result; try { DirectoryInfo d = new DirectoryInfo(FPUtils.GetMapPath(strPath)); result = WMSUtils.DirSize(d); } catch { result = 0L; } return(result); }
// Token: 0x0600028A RID: 650 RVA: 0x000097D4 File Offset: 0x000079D4 public static long GetSysSize() { object obj = FPCache.Get("CACHE_SYSSIZE"); long num; if (obj == null) { num = WMSUtils.DirSize(WebConfig.WebPath); FPCache.Insert("CACHE_SYSSIZE", num, 10); } else { num = (long)obj; } return(num); }
// Token: 0x0600004E RID: 78 RVA: 0x00004C50 File Offset: 0x00002E50 public static long DirSize(DirectoryInfo d) { long num = 0L; FileInfo[] files = d.GetFiles(); foreach (FileInfo fileInfo in files) { num += fileInfo.Length; } DirectoryInfo[] directories = d.GetDirectories(); foreach (DirectoryInfo d2 in directories) { num += WMSUtils.DirSize(d2); } return(num); }