add functionallity enterprise storage

This commit is contained in:
vfedosevich 2013-11-04 18:07:47 +03:00
parent cdf761d3ec
commit 922009d402
54 changed files with 4427 additions and 563 deletions

View file

@ -777,6 +777,11 @@ namespace WebsitePanel.Providers.Utils
return CalculateFolderSize(path, out files, out folders);
}
public static int BytesToMb(long bytes)
{
return (int)bytes / (1024 * 1024);
}
private static long CalculateFolderSize(string path, out int files, out int folders)
{
files = 0;
@ -874,8 +879,6 @@ namespace WebsitePanel.Providers.Utils
Directory.Delete(treeRoot.FullName, true);
}
}
public static void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, string quotaLimit, int mode, string wmiUserName, string wmiPassword)