Use drupals recursive scan function.

Works better with the symlink patch https://drupal.org/files/stream_wrappers-allow_symlinks-1008402-70-D7.patch