CFDIRECTORY with an action of list returns a query set with the query name
= to whatever you use in the name attribute.  You can then use this like
any other query.

cfdirectory Example from Macromedia site:

<!--- use cfdirectory to give the contents of the directory that contains
this page order by name and size --->
<cfdirectory
    directory="#GetDirectoryFromPath(GetTemplatePath())#"
    name="myDirectory"
    sort="name ASC, size DESC">
<!---- Output the contents of the cfdirectory as a cftable ----->
<cftable
    query="myDirectory"
    htmltable
    colheaders>
    <cfcol
       header="NAME:"
       text="#Name#">
    <cfcol
       header="SIZE:"
       text="#Size#">
</cftable>

At 12:06 AM 5/18/04, Gil Midonnet wrote:
>I'm using CFDIRECTORY to get a list of files that meet certain parameters.
>
>Sometimes one of the file doesn't exist. And here's the trouble. I can't
>seem to
>use CFDIRECTORY as a list. I keep getting the "complex object type" error.
>
>I can produce a list of a files that should exist, I would like to compare
>that to the files that do exist.
>
>Been spinning my wheels on this one.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to