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

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

by Asim (Hermit)
on Jun 18, 2003 at 12:01 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-09-26 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (118 votes). Check out past polls.

    Notices?