Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: Disk Space used by a folder (and sub folders)

by AltBlue (Chaplain)
on Jan 27, 2001 at 15:56 UTC ( [id://54745]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Disk Space used by a folder (and sub folders)
in thread Disk Space used by a folder (and sub folders)

error on getting (stat)[11] could get you a division by zero. i don't have any win32 machines to test this snippet on them, so good luck :)
on linux and solaris it works ok, outputs exactly the same as du -b. :)
(one quick solution w'd ofc be an 'and' between those two lines in my subroutine)

--
AltBlue.

  • Comment on Re: Re: Re: Disk Space used by a folder (and sub folders)

Replies are listed 'Best First'.
(stat)[11] under Win32 (Re: Disk Space used by a folder)
by tye (Sage) on Jan 28, 2001 at 05:05 UTC

    I was going to check this when it first came up but couldn't. (stat)[11] under Win32 is the empty string.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-06-19 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.