阅读背景:

如何在linux中以编程方式获得目录的大小?

来源:互联网 

I want to get the exact size of a particular dir in linux through a C program. I tried using statfs(path,struct statfs &) but it doesn't give exact size. I also tried with stat() but it returns size as 4096 for any dir !I want to get the exact size of a particular di




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: