Count files in one directory filtered by a set of filetypes
Posted on 2008-10-03
How to count the number of files by file type in one directory when not only one file type is searched but two or more file types, e.g.: .jpg,.gif,.png
The file types are not fixed but provided by a variable. Here an example:
<cfset fileTypes=".jpg,.gif,.png" >
Result needed is only the number of files not the list of files.
Best solution will get all points, no split, so be serious that you have a better solution then Query of Queries from a cfdirectory.