someone please help. I have this so far

<cfset log_name = "ex#dateformat(dateadd('d', -1, now()),'YYMMDD')#.log.gz">
<cfftp action="open" username="secret" password="secret" server="secret"
connection="myConnect" stoponerror="no" passive="yes">

<cfif cfftp.succeeded EQ "YES">
Connected!
<cfif CFFTP.ErrorCode is not "0">
Error Code:
<cfoutput>#CFFTP.ErrorCode# #cfftp.ErrorText#</cfoutput>
</cfif>
<cfelse>
NOT CONNECTED!!!!
<cfoutput>#CFFTP.ErrorCode#</cfoutput> <cfabort>
</cfif>
<cfftp action="putFile" connection="myConnect" asciiextensionlist="log"
remotefile="/CopyFromHere/#newospire_log_name#"
localfile="//FileNeedsToBeCopiedHere/#log_name#" failifexists="no">

<cfftp action="close" connection="myConnect" stoponerror="no">

So it is making the connection, but Error values are returning from
cfftp.errorcode that i inserted. When the page returns-- cfftp.suceeded is Yes,
however it cfftp.errorcode return the value 221 rather than 0.

I need this to copy a file frm one server to another. What am i doing wrong?
is there a better way to do this? All help is greatly appreciated!!! =)