wpkg --directory-size

Options Comments
--verbose Changes the output with the size of each folder and the total at the bottom, instead of just the total.

Compute the disk size of a directory as wpkg computes the size a package takes once installed (i.e. the value saved in the Installed-Size field.)

The size is computed assuming blocks are 512 bytes.

The --verbose option can be used to get the size on a per directory and then the total. Otherwise only the total is printed out.

Any number of parameters can be specified on the command line, each is taken as a directory and its size is computed as expected.