mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-27 12:18:43 +02:00
Update list-dir-tree.ps1 and list-folder.ps1
This commit is contained in:
parent
f3ba42d867
commit
7d813ac017
@ -1,4 +1,4 @@
|
|||||||
<#
|
ed<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Lists a directory tree
|
Lists a directory tree
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -17,15 +17,15 @@ param([string]$DirTree = "$PWD")
|
|||||||
|
|
||||||
function GetFileIcon { param([string]$Suffix)
|
function GetFileIcon { param([string]$Suffix)
|
||||||
switch ($Suffix) {
|
switch ($Suffix) {
|
||||||
".conf" {return "⚙️"}
|
|
||||||
".csv" {return "📊"}
|
".csv" {return "📊"}
|
||||||
".epub" {return "📓"}
|
".epub" {return "📓"}
|
||||||
|
".exe" {return "⚙️"}
|
||||||
".gif" {return "📸"}
|
".gif" {return "📸"}
|
||||||
".iso" {return "📀"}
|
".iso" {return "📀"}
|
||||||
".jpg" {return "📸"}
|
".jpg" {return "📸"}
|
||||||
".mp3" {return "🎵"}
|
".mp3" {return "🎵"}
|
||||||
".mkv" {return "🎬"}
|
".mkv" {return "🎬"}
|
||||||
".zip" {return "📦"}
|
".zip" {return "🎁"}
|
||||||
default {return "📄"}
|
default {return "📄"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,15 +17,15 @@ param([string]$searchPattern = "*")
|
|||||||
|
|
||||||
function GetFileIcon { param([string]$suffix)
|
function GetFileIcon { param([string]$suffix)
|
||||||
switch ($suffix) {
|
switch ($suffix) {
|
||||||
".conf" {return "⚙️"}
|
|
||||||
".csv" {return "📊"}
|
".csv" {return "📊"}
|
||||||
".epub" {return "📓"}
|
".epub" {return "📓"}
|
||||||
|
".exe" {return "⚙️"}
|
||||||
".gif" {return "📸"}
|
".gif" {return "📸"}
|
||||||
".iso" {return "📀"}
|
".iso" {return "📀"}
|
||||||
".jpg" {return "📸"}
|
".jpg" {return "📸"}
|
||||||
".mp3" {return "🎵"}
|
".mp3" {return "🎵"}
|
||||||
".mkv" {return "🎬"}
|
".mkv" {return "🎬"}
|
||||||
".zip" {return "📦"}
|
".zip" {return "🎁"}
|
||||||
default {return "📄"}
|
default {return "📄"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user