mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-21 23:43:25 +01:00
Update list-folder.ps1
This commit is contained in:
parent
1816f7d12d
commit
dbef508e55
@ -15,7 +15,7 @@
|
||||
|
||||
param([string]$searchPattern = "*")
|
||||
|
||||
function GetFileIcon { param([string]$suffix)
|
||||
function GetFileIcon([string]$suffix) {
|
||||
switch ($suffix) {
|
||||
".csv" {return "📊"}
|
||||
".epub" {return "📓"}
|
||||
@ -30,7 +30,7 @@ function GetFileIcon { param([string]$suffix)
|
||||
}
|
||||
}
|
||||
|
||||
function ListFolder { param([string]$searchPattern)
|
||||
function ListFolder([string]$searchPattern) {
|
||||
$items = Get-ChildItem -path "$searchPattern"
|
||||
foreach ($item in $items) {
|
||||
$name = $item.Name
|
||||
|
Loading…
Reference in New Issue
Block a user