A cross-platform module containing Cmdlets that extend functionality within PowerShell.
Get-ChildItemSize [[-Path] <String>] [<CommonParameters>]
A multi-threaded cmdlet to retrieve file and directory sizes.
Get-DirectorySize [[-Path] <String>] [<CommonParameters>]
A multi-threaded cmdlet to retrieve the size of a specified directory.
Copy the PSExtend directory from this repository to the PowerShell module path:
$env:PSModulePath
Import the PSExtend module:
Import-Module PSExtend
PS C:\> Get-DirectorySize -Path C:\Temp\Applications
Name Size FileCount DirectoryCount
---- ---- --------- --------------
Applications 3.806 GB 11 5
PS /Users/Demo> Get-ChildItemSize -Path /Users/Demo/Workspace
Name Size FileCount DirectoryCount
---- ---- --------- --------------
CM13 499.183 MB 2 0
Images 1.225 GB 3 0
LineageOS 490.955 MB 1 0
OpenApps 1.545 GB 2 0
RecoveryIMG 45.249 MB 2 0
notes.txt 10.244 KB
Install the Powershell platyPS module to help generate the maml help files.
Instructions on how to use playPS can be found at: https://github.com/PowerShell/platyPS
Install-Module -Name platyPS -Scope CurrentUser
Import-Module platyPS
Generate the initial Markdown boilerplate for the module:
Import-Module PSExtend
New-MarkdownHelp -Module PSExtend -OutputFolder .\Help
Modify the generated markdown files, replacing the "{{ ... }}"
placeholders with help content.
Generate the help files:
New-ExternalHelp .\Help -OutputPath en-US\
Clone the repository, and run the following command to build the Module:
dotnet build