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

Re: How to obtain the size of a remote Winnt4 share

by Asim (Hermit)
on Jun 18, 2003 at 12:01 UTC ( [id://266794]=note: print w/replies, xml ) Need Help??


in reply to How to obtain the size of a remote Winnt4 share

*EDITED to fix File::Find error...*

The two ways that leap to mind are:

  1. Iterate through the share with File::Find, using the -s test to grab each file's size (I found I had to use Math::BigInt on the size counter as well, your milage may vary.
  2. Use Win32::DirSize to do the job; it's easier but you lose a level of control, and I found it slow.
  3. Does that help? I can post sample code for both, but the docs on all these modules have good usage information.

    ----Asim, known to some as Woodrow.

    • Comment on Re: How to obtain the size of a remote Winnt4 share

Replies are listed 'Best First'.
Re: Re: How to obtain the size of a remote Winnt4 share
by zakb (Pilgrim) on Jun 18, 2003 at 12:05 UTC

      Indeed, I did, and I have corrected it.
      Thanks for the heads-up!

      ----Asim, known to some as Woodrow.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found