I am writing a fairly simple application that syncs a directory tree on a remote server to a mirror directory tree I have locally (i.e. It must be able to identify changes between the 2 and upload or delete files on the remote server according to changes made to the local directory tree. I run into a problem when I attempt to delete a directory containing files. I can't for the life of me figure out how to delete hidden files. I am using Mac OS X as a development environment and when I create/modify folders and files locally a .DS_Store hidden file is automatically generated by the OS in the working directory. This should not be a problem, but if I go to delete a directory locally and run my sync app, the FTP library gives me an exception trying to delete the mirror folder on the remote server because it still says there are files in the directory. It does this even after my app recursively goes through and deletes all files that show up using the client.dirDetails(dirName); and client.delete(remoteFile); functions recursively through the entire directory tree. All files are deleted every time, except the hidden ones (i.e. the ones starting with the period). How can I get the library to recognize these hidden files as files so my program can delete them off the remote server autonomously and thereby delete their parent directories which is my end goal. This application needs to run on windows as well, so I don't know if I will run into trouble with other types of hidden files there as well such as the Thumbs.db files windows generates in image directories, which is primarily what this program will be used for. Any help would be much appreciated. Thanks everyone for your time.