msbuildtasks icon indicating copy to clipboard operation
msbuildtasks copied to clipboard

Ftp CdUp expects wrong ResultCode

Open wschroers opened this issue 12 years ago • 1 comments

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

wschroers avatar Oct 17 '12 22:10 wschroers

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)

synthesis85 avatar Oct 14 '15 16:10 synthesis85