I have some FTP code that I have been using for a while now. Recently I have been testing the code using Windows vista. The code downloads files from an FTP site overwriting old files in a web application in inetpub. The code still works fine provided that the file that is being downloaded doesn't exist.
I tried to delete the file before it is downloaded using file.delete(path) so it wouldn't exist when it was downloaded. It doesn't look like vista allowed me to delete the file.
The majority of the code that I am using came from http://www.codeproject.com/KB/IP/FtpClient.aspx
. I have made a few modifications to the code to suit my needs such as making it configurable as to whether or not it uses active or passive ftp mode.
Any ideas as to why this isn't working and/or how to get it to work?