Nikko Odiseos wrote:
> 
> I need to determine the size of a directory with potentially hundreds of
> thousand of files.  Ideally needs to work on both nt and unix.  Should be
> easy but I am struggling.  Any ideas?

The safest (may not be most efficient) would be to use File::Find 
and stat each file and add to a vrbl.  You can prune if you don't 
want to recurse into the subdirs.

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED] 
  / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to