File counting....

chris10121

Verified User
Joined
Feb 17, 2008
Messages
31
Hey,

I'm wondering if anyone knows of a free script that will count files on a server, and if not, I will try to build one myself.

I'm trying to do a count of all the files in user directories, so it would include total files, and then total files of each user.

Other web hosts probably already do this to prevent users from uploading massive amounts of small files to slow down the server, so if anyone wants to help, I'd really appreciate it.


Thank you
 
Why not just utilise the operating systems use of the quota command.

Not only can you limit the SIZE of files, but also the NUMBER of files.

You can then run a report and it will tell you how many files are owned by each user.
 
Back
Top