We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd1edde commit d364655Copy full SHA for d364655
1 file changed
Functions/Get-FolderSize.ps1
@@ -72,7 +72,7 @@ param (
72
73
[Parameter()]
74
[ValidateSet(
75
- "KB","MB","GB"
+ "KB","MB","GB", "TB"
76
)]
77
$Unit = "MB"
78
)
@@ -84,7 +84,7 @@ process {
84
if ($item.PSIsContainer) {
85
$measure = Get-ChildItem $pathValue -Recurse -Force -ErrorAction SilentlyContinue |
86
Measure-Object -Property Length -Sum
87
- $sum = [Math]::Round( ($measure.Sum / "1$Unit"), 5)
+ $sum = [Math]::Round( ($measure.Sum / "1$Unit"), 2 )
88
[PSCustomObject]@{
89
"Path" = $item.FullName
90
"Size($Unit)" = $sum
0 commit comments