c has asked for the wisdom of the Perl Monks concerning the following question:
$info = (stat( "$dir ))[7];
Where $dir has a proper value, such as /home. Do I actually need to read through a directory and its subdirs adding up file sizes as I go?
humbly -c
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: diskspace used by a directory
by jepri (Parson) on Jul 25, 2001 at 07:32 UTC | |
|
Re: diskspace used by a directory
by jlongino (Parson) on Jul 25, 2001 at 07:36 UTC | |
by c (Hermit) on Jul 25, 2001 at 07:38 UTC | |
by jlongino (Parson) on Jul 25, 2001 at 08:16 UTC | |
by John M. Dlugosz (Monsignor) on Jul 25, 2001 at 19:24 UTC | |
|
Re: diskspace used by a directory
by $code or die (Deacon) on Jul 25, 2001 at 17:39 UTC | |
|
Re: diskspace used by a directory
by meonkeys (Chaplain) on Jul 25, 2001 at 08:01 UTC | |
by John M. Dlugosz (Monsignor) on Jul 25, 2001 at 19:29 UTC |