Hi,
I'm wondering if there is a way to get exactly the
same result of system fonction "du" in Perl.
I need to know the disk Space tooken by a directory
and it's sub-directory. To do that, I used the find method in File::Find to get
the size (using -s file test) of each file and dir in a directory, recursivly.
But the size I get is never the same as du ... why
? Both give a result in bytes, shouldn't it be the same ?
For example on /etc , su gives 3552 kB, mydu gives 2882 kB !!!
I did not find any module that was doing the du function .
THanks for your help
Fred
|
- Re: File Space Usage ... in perl ? Frédéric Schwien
- Re: File Space Usage ... in perl ? Ernest Lergon
- Re: File Space Usage ... in perl ? Christian Jaeger
- Re: File Space Usage ... in perl ? Alexander Farber (EED)