I've got my script to the point I have my full directory (with subdirectories) that I want to move up to my iis server.What I want to do is first, delete all the files and subdirectories on the remote server, then upload everything from my local directory to the server. I've been playing around for a while and not getting it. This seems like something anyone with ftp access only to a server would have to do to make a clean deployment.
Any suggestions? I've scoured the forums and don't see anything.
The FTP Delete Directory action can delete the files on the server. On the client side, you will need to create a Fileset with the files you want to upload, and then use that fileset with the FTP upload action.
Use the FTP Delete Directory action with the recurse option turned on. Then use a FileSet Define action to define the list of files you want to upload, and in the FTP Upload action specify the FileSet instead of a file spec. So the actions you would need :