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/s
ry) where a directory called "somedirectory" will be deleted. Unfortunately a directory cannot be deleted when it has other directories & files in it and these will differ. 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. Code to delete this directory even if it is not empty.
2. 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.
I am using a FTP component called ipwFTP1 which can use commands listed at:
I am using Delphi 6. This is URGENT so I am giving the maximum 500 points for this. Many thanks for your help.