I am looking for a way that I could check the information of a folder and a drive, to show the data size and storage amount (KB, MB, GB). This is so that I can compare the size of a folder to the storage capacity of a disk drive. Anyone know how to do this? Thanks!
If you have a tr2 implementation or can use boost filesystem, the following may be useful. In order to get the space taken by a directory, you would need to use a recursive iterator and sum the file sizes.