the following tag will return all the files in the specified directort and store it in the 'myDirectory' variable:
<CFDIRECTORY DIRECTORY="c:\inetpub\
NAME="myDirectory"
SORT="name ASC, size DESC">
When using the ACTION=LIST, CFDIRECTORY returns five result columns you can reference in your CFOUTPUT:
Name - Directory entry name.
Size - Size of directory entry.
Type - File type: File or Dir for File or Directory.
DateLastModified - Date an entry was last modified.
Attributes - File attributes, if applicable.
Mode - (Solaris and HP-UX only) The octal value representing the permissions setting for the specified directory. For information about octal values, refer to the UNIX man pages for the chmod shell command.
You can use the following result columns in standard CFML expressions, preceding the result column name with the name of the query:
#mydirectory.Name#
#mydirectory.Size#
#mydirectory.Type#
#mydirectory.DateLastModified#
#mydirectory.Attributes#
#mydirectory.Mode#
Sylvano
dsylvano@hotmail.com