I'm trying to get CFFTP to verify if a file already exists
on the server. If so, stop here, if not, go on with the 
rest of the code.  I know, this is probably so easy
that I can't see it.

<CFFTP  ACTION="Open"
                USERNAME="user" PASSWORD="pass" 
                SERVER="ftp.somewhere.com"
                CONNECTION="studies"
                STOPONERROR="Yes">

<CFFTP  ACTION="Exists" 
                CONNECTION="studies"  
                ITEM="#FORM.Nom#" 
                REMOTEFILE="studies/files/#FORM.nom#">

<CFIF #cfftp.returnvalue# eq 1>
        Error, the file already exists
<cfelse>
        Go on.
</cfif>
TIA!
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to