in reply to Re: Using stat()
in thread Using stat() to get the total size of files in a folder

If the input location is some other directory (not the current directory) then what to put inside glob ?

Replies are listed 'Best First'.
Re^3: Using stat()
by Anonymous Monk on Nov 25, 2011 at 10:04 UTC
      For Windows it will be glob "C:/" ?
      my $size = 0; for my $filename (glob("C:/")) { next unless -f $filename; $size += -s _; }