<cfdirectory action=""> directory="/abs/path/to/dir"
name="filelist" />
'filelist' will be a standard query object containing a list of the files in
the directory. You can optionally specify a 'filter' attribute to
CFDIRECTORY to narrow the files returned. It accepts literal chars, as well
as '?' and '*' wildcards.
If you really need it as an array (rather than a query), you can follow the
CFDIRECTORY up with this:
<cfset fileArray = listToArray(valueList(fileList.name, chr(5)), chr(5)) />
Cheers,
barneyb
> -----Original Message-----
> From: John Croney [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 11:52 AM
> To: CF-Talk
> Subject: Get file list
>
> Is it possible to get a list of files in a folder to store in
> an array? I can do it in vbscrip but I am new to CF and could
> do with some help.
>
> Thanks
>
> John
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

