Copying over an existing file

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
JimM
Posts: 9
Joined: Mon Mar 23, 2009 11:42 am

Copying over an existing file

Post by JimM » Tue Mar 24, 2009 5:20 pm

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

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Copying over an existing file

Post by mb » Tue Mar 24, 2009 5:54 pm

Please post the complete log.

JimM
Posts: 9
Joined: Mon Mar 23, 2009 11:42 am

Re: Copying over an existing file

Post by JimM » Wed Mar 25, 2009 8:03 am

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]

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Copying over an existing file

Post by mb » Wed Mar 25, 2009 10:41 am

It's a problem with the FTP server.

Regards,
Mat

Post Reply