There is a list function within FTP, however in my experiance its been flackey at best.
<cftp action="" name="listfiles" directory="/" connection="myconnection">
(I've assumed that you've opened the connection, locked the connection and commands with CFLOCK and trapped the statements with a try/catch block and checked for error codes)
Once you've closed the connection you can do the following:
<cfoutput query="listfiles">
#name#
#path#
#URL#
#length#
<cfif #isdirectory#>Directory<cfelse>File</cfif>
</cfoutput>
(Code modified from Programing Cold Fusion Page 407-409)
Jeremy Brodie
Intelix
an Edgewater Technology Solutions Company
web: http://www.edgewater.com
phone:(703) 815-2500
nasdaq symbol: EDGE
>Bushy,
>
>I don't think what you are asking is possible. Unless in your cfftp you
>loop through and get the directories and subdirectories first and then
>display them in the tree form.
>
>Could you post your cfdirectory code and I will see if I can come up with
>something.
>
>Steve
>
>
>-----Original Message-----
>From: Bushy [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, November 19, 2003 7:31 AM
>To: CF-Talk
>Subject: REPOST: Creating "treeview" structure using <cfftp? HOW COME NO ONE
>IS REPLYING???
>
>
>Hi,
>
>Is it possible to create a "treeview" structure using <cfftp similar to the
>following and by clicking on the directory will drilldown?
>
>+ dir1
>+ dir2
>+ dir3
>+ dir4
>
>Click on "dir2"
>
>+ dir2
> + subdir1
> + subdir2
> file1
> file1
> file1
>
>I've done something similar using <cfdirectory and <cfloop but I'm stuck on
>how to achive this using <cfftp.
>
>Please....someone help George Bush!
>
>
>
> _____
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

