PDA

View Full Version : Size of the directory



npc
26th December 2006, 12:29
Hi folks,

I am working in a Linux box , using Qt 3.
Is there any function to find out the size of the specified folder ?

thanks in advance:)

munna
26th December 2006, 12:50
I think you will need to add the size of each file or folder in a particular directory in order to find its size.

This can be done with one recursive function.

npc
27th December 2006, 06:33
Thank you munna,

I understand what ur telling, but how can I get the size of those files using Qt or C++.

Is there any single line command for that ?

npc
27th December 2006, 08:05
yes I found the size () in Qfile class. thank you.