All,
My application needs to find out a directory size. As running system command
du may slow down the performance of my application I dont want to use it. But I am interested in using the system call which may return the directory size.
I went through the man page of system calls such as
statfs and
stat but they are not say anything about the size of the directory. Probably they may be used for finding out the file size in a directory.
Please suggest me on how to get the size of a directory.
Regrads,
HeartBeat