Skip to content

Instantly share code, notes, and snippets.

@Swimburger
Created July 1, 2019 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swimburger/0f8a073b80437069857693008265105b to your computer and use it in GitHub Desktop.
Save Swimburger/0f8a073b80437069857693008265105b to your computer and use it in GitHub Desktop.
Get-ChildItem -Directory | ForEach {$_.FullName + (" {0:N2} MB" -f ((Get-ChildItem $_.FullName -Recurse | Measure-Object -Property Length -Sum).Sum / 1MB))}
@Swimburger
Copy link
Author

Swimburger commented Jul 1, 2019

Works in Azure Kudu PowerShell console

@Swimburger
Copy link
Author

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