Created
July 1, 2019 18:45
-
-
Save Swimburger/0f8a073b80437069857693008265105b to your computer and use it in GitHub Desktop.
Gets folder sizes of all folders in CWD based on https://www.gngrninja.com/script-ninja/2016/5/24/powershell-calculating-folder-sizes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Directory | ForEach {$_.FullName + (" {0:N2} MB" -f ((Get-ChildItem $_.FullName -Recurse | Measure-Object -Property Length -Sum).Sum / 1MB))} |
I wouldn't recommend running this if you have node_modules, you'll probably end up at the other side of the universe...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works in Azure Kudu PowerShell console