PowerShell-Profile/functions/Get-FileSize copy
Tomasz Kostrzewa 57cfb986dc modified: RdzeN-Profile.ps1
new file:   functions/Get-FileSize
	new file:   functions/Get-FileSize copy
	modified:   functions/prompt.ps1
2024-03-05 23:03:57 +01:00

21 lines
422 B
Plaintext

# gitea.RdzeN.net
#
# Get Object Count.
function Get-ObjectCount {
param (
[string]$Path,
[switch]$Recurse
)
$items = Get-ChildItem $Path -Recurse:$Recurse
$count = $items.Count
return $count
}
if ($Recurse) {
Write-Host "Liczba obiektów w katalogu '$folderPath' i podkatalogach: $objectCount"
} else {
Write-Host "Liczba obiektów w katalogu '$folderPath': $objectCount"
}