Originally posted by duny
Thanks is there one that would be faster just to say just the amount of files...
i.e. (there are 123 files in this web site.)
Yes. Count the files found instead of putting them in an array.
Or, as bubblenut notes, given typical sizes, do it with a system call (ls -U1Rd and pipe the result through something to strip out blank lines and lines ending with =:, then count the number of lines left). Um ls -U1Rd | egrep -cv "=:$|$ I think. You won't be able to go much faster than asking the system itself.
(Er, but do you want the entire hard drive, or just a web document tree?)