mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-29 10:09:37 +01:00
Update list-dir-tree.ps1
This commit is contained in:
parent
9687903884
commit
e2aaef5499
@ -65,9 +65,9 @@ function ListDirectory([string]$path, [int]$depth) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
[int]$global:folders = 1
|
[int64]$global:folders = 1
|
||||||
[int]$global:files = 0
|
[int64]$global:files = 0
|
||||||
[int]$global:bytes = 0
|
[int64]$global:bytes = 0
|
||||||
ListDirectory $Path 0
|
ListDirectory $Path 0
|
||||||
Write-Output " ($($global:folders) folders, $($global:files) files, $(Bytes2String $global:bytes) total)"
|
Write-Output " ($($global:folders) folders, $($global:files) files, $(Bytes2String $global:bytes) total)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
Loading…
Reference in New Issue
Block a user