Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Using stat()

by pankaj_it09 (Scribe)
on Nov 25, 2011 at 10:11 UTC ( [id://940015]=note: print w/replies, xml ) Need Help??


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 /?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://940015]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found