Directory statistics
Posted: Sun Nov 30, 2003 10:29 am
I hate "asking" for code, but I need some help. I'm considerably rusty on my PHP skills and would like to do this with a decent method.
Basically, I'd like to get statistics for subdirectores in a tree of directories (horribly explained.) Including the total size, the filecount, and possibly the oldest/newest file. For example...
/home/*/.maildir/Spam/
where * is each subdir in /home/
(To generate spam statistics)
I have an idea of the basic function of doing this, but can't put it all together. If anyone could lend assistance, it'd be mucho appreciated. Thanks.
Basically, I'd like to get statistics for subdirectores in a tree of directories (horribly explained.) Including the total size, the filecount, and possibly the oldest/newest file. For example...
/home/*/.maildir/Spam/
where * is each subdir in /home/
(To generate spam statistics)
I have an idea of the basic function of doing this, but can't put it all together. If anyone could lend assistance, it'd be mucho appreciated. Thanks.