blackadder has asked for the wisdom of the Perl Monks concerning the following question:
so that instead of <*> i can pass on a remote share or directory name?my $size = 0; $size += (-f $_ ? -s _ : 0) for (<*>); print $size;
And they are very slow -unusable really in real life, ok on small servers thu.1) ($Total)=( (qx{dir /s "$UncSharePath"})[-2]=~ /([\d,]+) bytes/ ) 2) find(sub { $total += -s }, $dir);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Faster way to obtain a remote share or folder size
by BrowserUk (Patriarch) on Jul 01, 2003 at 16:42 UTC | |
|
Re: Faster way to obtain a remote share or folder size
by TomDLux (Vicar) on Jul 01, 2003 at 16:55 UTC | |
by blackadder (Hermit) on Jul 02, 2003 at 08:05 UTC |