mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-26 14:26:10 +01:00
Improve show-dir-tree.ps1
This commit is contained in:
parent
66131f8157
commit
5694bced66
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/pwsh
|
||||
#!/usr/bin/pwsh
|
||||
<#
|
||||
.SYNTAX show-dir-tree.ps1 [<dir-tree>]
|
||||
.DESCRIPTION visualizes the given/current directory tree
|
||||
@ -17,7 +17,7 @@ function VisualizeDirectory { param([string]$Directory, [int]$Depth)
|
||||
for ($i = 0; $i -lt $Depth; $i++) {
|
||||
write-host -nonewline "+--"
|
||||
}
|
||||
write-host -foregroundColor green "$Filename/"
|
||||
write-host -foregroundColor green "📂$Filename"
|
||||
VisualizeDirectory "$Directory\$Filename" $Depth
|
||||
$global:NumDirs++
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user