sub folders file count
Count the files in sub folders
This script assumes that all that is in /main is sub folders and a index file
And all the sub folders contain only the files being counted and a index file
if the sub folders do not contain a index file change the maths to
var $total=($total+$subc)
Beware of timeouts on very large main folders and sub folders
Example code
Example output
Reload
The sub folders in
/main/ contain 14 files in total