Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$size = -s "$dirname"; #this returns 0 opendir(DIR, $dirname); $size = -s readdir(DIR); #again 0 ( .... ) = stat(DIR); #returns a filename to $size
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Directory Size
by Beatnik (Parson) on Jul 26, 2001 at 22:08 UTC | |
|
Re: Directory Size
by bikeNomad (Priest) on Jul 26, 2001 at 22:09 UTC | |
|
Re: Directory Size
by LD2 (Curate) on Jul 26, 2001 at 22:23 UTC | |
|
Re: Directory Size
by John M. Dlugosz (Monsignor) on Jul 26, 2001 at 23:34 UTC |