- see footer for list info -<
RichL wrote:

- see footer for list info -<
Morning
How can you manually recreate the directory browsing facility with CF
(assuming directory browsing was disabled on the server)?

i.e. create an index.cfm page with links to all files in the same
directory but also to list all directories that you can click in to
and have the same ability to see all files sub-directories etc?

If you're on CFMX 7 then its easy. CFDirectory in MX7 is capable of recursing through a directory structure.

In previous versions you need to write a recursive routine to go through the results from a CFDirectory and go down into any directorys and get the files and folders from that directory and so on....

CFDirectory just returns a query, so its pretty easy to output your directory structure.
Hope this helps

Stephen


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to