BuildReportTool.Util.GetFolderSizeInBytes C# (CSharp) Метод

GetFolderSizeInBytes() публичный статический Метод

public static GetFolderSizeInBytes ( string folderPath ) : double
folderPath string
Результат double
	public static double GetFolderSizeInBytes(string folderPath)
	{
		if (!Directory.Exists(folderPath))
		{
			return 0;
		}

		double totalBytesOfFilesInFolder = 0;
		foreach (string file in DldUtil.TraverseDirectory.Do(folderPath))
		{
			totalBytesOfFilesInFolder += GetFileSizeInBytes(file);
		}

		return totalBytesOfFilesInFolder;
	}