mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-19 00:46:30 +02:00
Updated the manuals
This commit is contained in:
@@ -6,7 +6,7 @@ This PowerShell script scans a directory tree and lists all empty directories.
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./list-empty-dirs.ps1 [[-path] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/list-empty-dirs.ps1 [[-path] <String>] [<CommonParameters>]
|
||||
|
||||
-path <String>
|
||||
Specifies the path to the directory tree (current working directory by default)
|
||||
@@ -27,7 +27,7 @@ Example
|
||||
```powershell
|
||||
PS> ./list-empty-dirs.ps1 C:\Windows
|
||||
...
|
||||
✔️ Found 39972 empty directories within 📂C:\Windows in 222 sec
|
||||
✅ Found 39972 empty directories within 📂C:\Windows in 222 sec
|
||||
|
||||
```
|
||||
|
||||
@@ -52,7 +52,7 @@ Script Content
|
||||
.EXAMPLE
|
||||
PS> ./list-empty-dirs.ps1 C:\Windows
|
||||
...
|
||||
✔️ Found 39972 empty directories within 📂C:\Windows in 222 sec
|
||||
✅ Found 39972 empty directories within 📂C:\Windows in 222 sec
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@@ -73,7 +73,7 @@ try {
|
||||
}
|
||||
Write-Progress -completed " "
|
||||
[int]$Elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Found $count empty directories within 📂$path in $elapsed sec"
|
||||
"✅ Found $count empty directories within 📂$path in $elapsed sec"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@@ -81,4 +81,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-empty-dirs.ps1 as of 08/15/2024 09:50:49)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-empty-dirs.ps1 as of 11/08/2024 12:34:50)*
|
||||
|
Reference in New Issue
Block a user