Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Using stat()

by pankaj_it09 (Scribe)
on Nov 25, 2011 at 10:11 UTC ( #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? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-05-26 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (92 votes). Check out past polls.

    Notices?