Re: File Space Usage ... in perl ?

2000-10-23 Thread Alexander Farber (EED)
See Perl Power Tools - http://language.perl.com/ppt/what.html

Re: File Space Usage ... in perl ?

2000-10-21 Thread Christian Jaeger
See http://testwww.ethz.ch/source/my_scripts_collection/duu for a script of mine calculating directory sizes (it's like du but more eye friendly, it displays the subfolders sorted after their size). Its not the same thing, as it uses du to calculate the size of each subfolder, but I've had the

Re: File Space Usage ... in perl ?

2000-10-21 Thread Ernest Lergon
Dear Fred, without testing it, just some ideas. Try to exchange: To be on the safe side: > my $_size = -s $File::Find::name; my $_size = -s $File::Find::fullname; To count links in: > find ( $wanted, "$dir" ); find ( { wanted => $wanted, follow => 1 }, $dir ); Che

File Space Usage ... in perl ?

2000-10-21 Thread Frédéric Schwien
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 d