stat and lstat

I used stat, then use .st_size to get the size, but it only reports the
standard folder’s size which is always 4096, not the actual content’s size
of the folder.
any suggestion?