fix multi-line command pipe
This commit is contained in:
@@ -785,8 +785,8 @@ Function Get-FileSizes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Get the file paths and sizes as specified
|
# Get the file paths and sizes as specified
|
||||||
$FileSizes = Get-ChildItem $Path -Recurse:$Recurse -Force:$IncludeHidden -ErrorAction SilentlyContinue |
|
$FileSizes = Get-ChildItem $Path -Recurse:$Recurse -Force:$IncludeHidden -ErrorAction SilentlyContinue | `
|
||||||
Sort-Object -Descending:$SortOrder -Property Length |
|
Sort-Object -Descending:$SortOrder -Property Length | `
|
||||||
Select-Object -First $Quantity @{Name="File Path";Expression={$_.DirectoryName + '\' + $_.Name}}, @{Name=$UnitLabel;Expression={[Math]::Round($_.Length / $Divisor, $Precision)}}
|
Select-Object -First $Quantity @{Name="File Path";Expression={$_.DirectoryName + '\' + $_.Name}}, @{Name=$UnitLabel;Expression={[Math]::Round($_.Length / $Divisor, $Precision)}}
|
||||||
|
|
||||||
# Set output prefix
|
# Set output prefix
|
||||||
|
|||||||
Reference in New Issue
Block a user