There is one post in the FTP category:
PHP Script to Get Array of FTP Directories and Subdirectories
This function connects to your server via FTP then crawls through all the subdirectories, returning you with an array of their locations. » View Post