doesn't make a difference. Same error. I can getfile and putfile just fine.
Does the folder that you're trying to list give READ permission to the FTP account that's trying to read it?
Just throwin' stuff out there.
I would also throw the following in, as a long shot. FTP error 215 says something about system name. So, what about changing your name attribute from test to, say, myTest ?
permissions are good, running the command in CF8 to this exact folder
I had that thought as well. I tried different names with the same result, i think the error is a false positive
The "NAME" that the error 215 is referring to is the server name at the other end. The "Name" in CFFTP is your query name.
At this point I would run FileZilla with full tracing/logging turned on, and see if anything funky happens when you connect to the ftp server. It will do a listdir automatically when it connects. Look to see if the server changes its name or something like that. The ftp support in CF10 is almost certainly different from that in CF8 or CF9, so maybe there is something that it is sensitive to.
Wishing this advice wasn't so vague, but at this point it looks like you need more information about the connection that what CF is going to give you. Keep us posted.
Any word on this? I'm having the same problem. I can connect to a filezilla server and see that both coldfusion and ftp from a command prompt will translate the listdir and dir commands as a LIST action in filezilla. I don't have access to the ftp server that's giving me this 215 error code unfortunately, maybe something interesting would be found in those logs.
I had to do a workaround, using cfexecute to call a local windows batch file to just get * and put them in a folder and have cfdirectory review.
Adobe - you seem to have a problem here. I have tried ListDir on known connections and it fails every time. Can somebody provide an answer?
Action="close" does not work either. It says "invalid Connection Specified" even if this command is issued immediately after the Open command which works fine.
If you can access your ftp server via any ftp client like Filezilla then you will be able to list directories via ColdFusion as well. Share the stack trace as well.
action = "open"
username = "username"
connection = "ftp"
password = "password"
server = "abc.xyz.com"
stopOnError = "Yes">
<!--- Confirmation of Open --->
<cfoutput> Connection Open :#cfftp.succeeded# </cfoutput>
<p>List the files in a directory:
action = "LISTDIR"
stopOnError = "Yes"
name = "ListFiles"
directory = "/"
connection = "ftp">
stopOnError = "Yes">
<!--- Confirmation of Close --->
<cfoutput> Connection Closed :#cfftp.succeeded# </cfoutput>
Will do. However we installed CF 9 and it worked on first try. We had
been trying for a week with CF10