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
------------------------------------------------------------------------------
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