A simple dotnet global tool to calculate the size of each sub-dir.
dotnet tool install --global dir-size
Usage: dir-size [options]
Options:
-v|--version Show version information
-?|-h|--help Show help information
-d|--dir The directory to work with, default is the current dir
-s|--sort Sort by size
Current directory:
dir-size
Specify the target directory
dir-size -d path/to/dir
Sort by size:
dir-size -s -d path/to/dir