Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaykul/treesize
An exercise in live coding.
https://github.com/jaykul/treesize
Last synced: 2 months ago
JSON representation
An exercise in live coding.
- Host: GitHub
- URL: https://github.com/jaykul/treesize
- Owner: Jaykul
- Created: 2015-08-12T21:34:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-12T22:46:07.000Z (over 9 years ago)
- Last Synced: 2024-04-30T11:55:05.598Z (8 months ago)
- Language: PowerShell
- Size: 117 KB
- Stars: 24
- Watchers: 9
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
This is just a Get-TreeSize function to show (recursively) how much space (files and) folders take up. I wrote it in a 3hr live-coding session on Floobits as an exercise for the [PowerShell virtual user group](http://PowerShell.slack.com) (for an invite visit http://slack.poshcode.org)
Anyway, there's just one function and a format file. Please enjoy.
To install:
```posh
Install-Module -Name TreeSize
```Example usage:
```
PS> Get-TreesizeLocalization\ 12021
├─ En-US\ 2025
├─ En\ 1339
``````
PS> Get-Treesize -ShowFilesLocalization\ 12021
├─ Localization.psd1 6698
├─ En-US\ 2025
├─ UserSettings.psd1 1000
├─ Localization.psd1 958
├─ numbers.psd1 67
├─ UserSettings.psd1 1959
├─ En\ 1339
├─ UserSettings.psd1 1253
├─ numbers.psd1 86
``````
PS> Get-Treesize | Format-CustomLocalization\ (11.74 KB)
├─ En-US\ (1.98 KB)
├─ En\ (1.31 KB)
```