add functionallity enterprise storage
This commit is contained in:
parent
cdf761d3ec
commit
922009d402
54 changed files with 4427 additions and 563 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue