This class is a manager of server side files and directories.
It can perform several operations on files and directories on the server side like creating and removing directories, creating, updating and deleting files from directories, retrieving the list of files in a diretory recursively, generating a files listing in a HTML page, etc..
The class can also create htaccess and htpasswd files to restrict the Web access to a given directory to a given user with a password.
Code at phpclasses.org
Code at code.google.com