Copying over an existing file

On attempting to overwrite a file on the destination server (using FXPFile), I get the result ftpErrorWrongReply. Is this what I should get on an attempted overwrite of an existing file?

The entry in the log is..

[20090324 17:13:19] 550 Could not create file "xxx"

Is the sequence for overwriting a file then, check to see if file exists on the destination, if it does delete it, then start the fxp transfer??

thanks,

Jim

Please post the complete log.

Please post the complete log.

OK - here is the log. The first transfer succeeded (file did not exist on the destination) and the second one failed (file already present on destination)

[codebox][20090324 17:08:51] SmartFTP FTP Library v1.5.17.24
[20090324 17:08:51] Resolving host name "10.80.20.20"
[20090324 17:08:51] Connecting to 10.80.20.20 Port: 21
[20090324 17:08:51] Connected to 10.80.20.20.
[20090324 17:08:51] 220
[20090324 17:08:51] USER anonymous
[20090324 17:08:51] 331 User name anonymous, need password
[20090324 17:08:51] PASS test@test.com
[20090324 17:08:51] 230 User anonymous logged in. There are currently 1 users.
[20090324 17:08:51] SYST
[20090324 17:08:51] 215 Blah File System - Unix style list format
[20090324 17:08:51] RTT: 0.792 ms
[20090324 17:08:51] FEAT
[20090324 17:08:51] 211-Extensions supported
[20090324 17:08:51] UTF8
[20090324 17:08:51] 211 End
[20090324 17:08:51] OPTS UTF8 ON
[20090324 17:08:51] 200 Using UTF8 character set
[20090324 17:08:51] TYPE I
[20090324 17:08:51] 200 Using binary for file transfers
[20090324 17:08:51] REST 0
[20090324 17:08:51] 350 RESTarting at 0. Send STOR or RETR to initiate.
[20090324 17:08:51] PWD
[20090324 17:08:51] 257 Current directory is: "/"
[20090324 17:08:51] PORT 10,80,10,10,4,41
[20090324 17:08:51] 200 PORT command successful
[20090324 17:08:51] STOR /fs0/testjim/testfile.m2v
[20090324 17:08:51] 150 Opening data connection.
[20090324 17:11:17] 226 File transfer completed.
[20090324 17:13:18] SmartFTP FTP Library v1.5.17.24
[20090324 17:13:19] Resolving host name "10.80.20.20"
[20090324 17:13:19] Connecting to 10.80.20.20 Port: 21
[20090324 17:13:19] Connected to 10.80.20.20.
[20090324 17:13:19] 220
[20090324 17:13:19] USER anonymous
[20090324 17:13:19] 331 User name anonymous, need password
[20090324 17:13:19] PASS test@test.com
[20090324 17:13:19] 230 User anonymous logged in. There are currently 1 users.
[20090324 17:13:19] SYST
[20090324 17:13:19] 215 Blah File System - Unix style list format
[20090324 17:13:19] RTT: 0.883 ms
[20090324 17:13:19] FEAT
[20090324 17:13:19] 211-Extensions supported
[20090324 17:13:19] UTF8
[20090324 17:13:19] 211 End
[20090324 17:13:19] OPTS UTF8 ON
[20090324 17:13:19] 200 Using UTF8 character set
[20090324 17:13:19] TYPE I
[20090324 17:13:19] 200 Using binary for file transfers
[20090324 17:13:19] REST 0
[20090324 17:13:19] 350 RESTarting at 0. Send STOR or RETR to initiate.
[20090324 17:13:19] PWD
[20090324 17:13:19] 257 Current directory is: "/"
[20090324 17:13:19] PORT 10,80,10,10,4,42
[20090324 17:13:19] 200 PORT command successful
[20090324 17:13:19] STOR /fs0/testjim/testfile.m2v
[20090324 17:13:19] 550 Could not create file "/fs0/testjim/testfile.m2v"[/codebox]

It's a problem with the FTP server.

Regards,
Mat