Is the command "listdir" the actual command you are sending to the FTP site?
I don't see in your code the name of the file to download or the wildcard to
download everything.  When your routine is running, do you get a file
transfer dialog box?

I believe the command should be "ls"   all lower case. (most ftp servers use
unix-type commands, even the windows ones)

I apologize if I read your message incorrectly.

======================================
Got DSL?  Check it out!
For hosting solutions http://www.clickdoug.com
ISP rated: http://www.forta.com/cf/isp/isp.cfm?isp_id=772
======================================
My Idea of an agreeable person is a person who agrees with me!

----- Original Message -----
|
| Date: Sun, 25 Aug 2002 14:55:05 +0200
| From: "Leo Scheltinga" <[EMAIL PROTECTED]>
| To:
| Subject: CFFTP ListDir returns nothing
| Message-ID: <000e01c24c36$a98b0340$0201a8c0@oemcomputer>
|
| This is the first time I use the CFFTP tag. I can open and close the
connection, and also test with ExitsDir that the directory I want to read
exists without any FTP errors. But for some reason I cannot get the
ACTION=LISTDIR working.
|
| Below is the form I use. I also tried to set the directory hardcoded
instead of using #CFFTP.returnvalue#, but I get the same result. Also, it
doenst result in an FTP error, it just takes a very long time for the form
to finish and returning nothing (sometimes hanging the CF server). I also
tried "/*." as directory, which I found in some example programs, but I get
the same result.
|
| What am I doing wrong ?
| Leo
|
|
| <cfoutput>
|
| <cfftp action="OPEN"
|        server="my_server"
|        port="21"
|        username="my_user"
|        password="my_passw"
|        stoponerror="Yes"
|        connection="download">
|
| <cfftp action="GETCURRENTDIR"
|        stoponerror="Yes"
|        connection="download">
|
| <cfftp action="LISTDIR"
|        stoponerror="Yes"
|        name="ContentList"
|        directory="#CFFTP.ReturnValue#"
|        connection="download">
|
| FTP Returnvalue: #CFFTP.ReturnValue#<BR>
| FTP Operation Successful: #CFFTP.SUCCEEDED#<BR>
| FTP Error Code: #CFFTP.ErrorCode#<BR>
| FTP Error Text: #CFFTP.ErrorText#<BR>
| RecordCount: #ContentList.RecordCount#<br>
|
| <cfftp action="CLOSE"
|        connection="download">
|
| </cfoutput>
|
| When I run this, the following returns (after a very long time):
| FTP Returnvalue:
| FTP Operation Successful: TRUE
| FTP Error Code:
| FTP Error Text:
| RecordCount: 0
|
| ______________________________________________________________________
| Signup for the Fusion Authority news alert and keep up with the latest
news in ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
|
| ------------------------------
|
| End of CF-Server-List V1 #76
| ****************************
| --------------------------------------------------------------------------
----
| To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com
|
|

------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to