It wont even list.  The code connects fine to the FTP server but as soon as I try to do the LISTDIR command it just times out

 


From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Dale Fraser
Sent: Monday, 6 November 2006 1:50 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: CFFTP on CF7

 

I do it differently, but it should work on cf 7

 

            <cftry>

                  <cfftp name="dirList" connection="ftpConnection" action="" directory="#arguments.folder#" />

                  <cfloop query="dirList">

                        <cfif isDirectory>

                              <cfset expandFolder(arguments.ftpConnection, fixPath(path, "folder")) />

                        <cfelse>

                              <cfset arrayAppend(this.fileList, path) />

                        </cfif>

                  </cfloop>

                 

                  <cfcatch type="any">

                        <cfset arrayAppend(this.result.errors, arguments.folder) />

                  </cfcatch>

            </cftry>

 

From

 

http://dale.fraser.id.au/blog/index.cfm/2006/7/25/FTP-Sync-Component-100

Regards
Dale Fraser

http://dale.fraser.id.au


 


From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Steve Onnis
Sent: Monday, 6 November 2006 13:44 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] CFFTP on CF7

 

Has anyone used CFFTP on CF7 yet?

 

I have this code and it works fine on CFMX6.1 but fails on CF7.2

 

<cfftp action = "">

   username = "anonymous"

   connection = "My_query"

   password = "wsftp65@"

   server = "ftp.adobe.com"

   stopOnError = "Yes">

<p>Did it succeed? <cfoutput>#cfftp.succeeded#</cfoutput>

<p>List the files in a directory:

<cfftp action = "">

    stopOnError = "Yes"

    name = "ListFiles"

    directory = "/"

    connection = "my_query">

<cfoutput query = "ListFiles">#name#<br></cfoutput>

 

 

Has anyone else come across this?

 

Steve

 


size=3 face="Times New Roman">


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---



Reply via email to