msbuildtasks
msbuildtasks copied to clipboard
Ftp CdUp expects wrong ResultCode
The CdUp method (used by FtpUploadDirectoryContent) returns ResultCode 200 - Working directory changed. The method throws an exception if the ResultCode is not equal to 250 - command successful.
I think both result codes are correct: http://en.wikipedia.org/wiki/List_of_FTP_server_return_codes
I agree with this issue. I had a problem with uploading a directory cause of this issue. CdUp() method should be changed to use this check: if (reply.ResultCode != 250 && reply.ResultCode != 200)