]> apps.delaporte.us Git - dotfiles.git/commitdiff
Merge branch 'main' of github.com:edthedev/dotfiles into main
authorEdTheDev <edward@delaporte.us>
Sat, 2 Dec 2023 04:02:58 +0000 (22:02 -0600)
committerEdTheDev <edward@delaporte.us>
Sat, 2 Dec 2023 04:02:58 +0000 (22:02 -0600)
psmodules/file_management.psm1

index bbb6fa12bd2a3eaf2accd2ffc5f79965711b731d..3622885c75e91c9e717577a2b90f4a7adfb28135 100644 (file)
@@ -6,9 +6,10 @@ Find 10 largest files on the C drive.
 #>
 function Show-LargeFiles() {
        param(
-               [int]$Max=10
+               [int]$Max=10,
+               [string]$path="C:\Users"
        )
-       Get-ChildItem c:\ -r| sort -descending -property length | select -first $Max name, Length, FullName
+       Get-ChildItem $path -r | sort -descending -property length | select -first $Max name, Length, FullName
 }
 
 <#