At a click of a button, I want to give the user the option of deleting a directory on a web server. The path to this directory is always the same (home/username/http-docs/list) where a directory called "list" can be deleted. Unfortunately a directory cannot be deleted when it has other directories & files in it. I already have the code to log in/out of the server. All I need is some code to do EITHER of the following:
1. List all the directories and files in a directory and ALSO their sub-directories. Everything has to be listed so I can set up a delete routine. I already have the path to the top directory.
2. Code to delete a directory even if it is not empty.
3. Code to rename a directory even if not empty.
I am using Delphi 6. This is URGENT so I am giving the maximum 500 points for this. Many thanks for your help.