good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Disk Space used by a folder (and sub folders)by $code or die (Deacon) |
on Jan 25, 2001 at 19:02 UTC ( [id://54267]=CUFP: print w/replies, xml ) | Need Help?? |
pass this subroutine the path (can be a UNC path!) and it will return the amount of disk space that the folder (and its subfolders) use in bytes.
I was previously using a couple of subs in a very confusing loop, but this is neater, and faster I hope.
Back to
Cool Uses for Perl
|
|