There doesn't seem to be any recursion in your code, not even any hint of listing a directory on the server and processing its files.

Cheers,
_