http://qs1969.pair.com?node_id=940015


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

For Windows it will be glob "C:/" ?
my $size = 0; for my $filename (glob("C:/")) { next unless -f $filename; $size += -s _; }

Replies are listed 'Best First'.
Re^5: Using stat()
by Anonymous Monk on Nov 25, 2011 at 10:13 UTC
      Doesn't work.

        Sure it does

        Um, what were you expecting, a file named /?