Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Think about Loose Coupling
 
PerlMonks  

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

by $code or die (Deacon)
on Jan 27, 2001 at 02:03 UTC ( [id://54704]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

Not sure, but I got an illegal divide by zero error when running your example.

I'll play around with your code and see if I can get it to work.

$code or die
Using perl at
The Spiders Web
  • Comment on Re: Re: Disk Space used by a folder (and sub folders)

Replies are listed 'Best First'.
Re: Re: Re: Disk Space used by a folder (and sub folders)
by AltBlue (Chaplain) on Jan 27, 2001 at 10:56 UTC
    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.

      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://54704]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.