filesize -package:hackage-security package:directory

Obtain the size of a file in bytes.