>>>>> "EP" == Erik Price <[EMAIL PROTECTED]> writes:

  EP> How do I get the size of a directory from a Perl script?  I
  EP> realize that directories' "sizes" only point to their immediate
  EP> contained items, so subdirectory sizes are not factored into "ls
  EP> -l" or "ls -sk".

use File::Find and sum the -s of each file. simple. filter out dirs from
the sum.

and search cpan as i bet it has been done before.

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
----- Stem and Perl Development, Systems Architecture, Design and Coding ----
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org

Reply via email to