When using cfdirectory, how can I exclude all cfm files and list all the others without specifying file extensions for all the files that I want to see, or exclude a specific file, such as index.html, without requesting a request?
I am looking for something like the following, pay attention to the filter attribute.
<cfdirectory directory="#ExpandPath('./')#" action="list" name="qryFiles" filter="!index.html" sort="name ASC" listinfo="name">
or
<cfdirectory directory="#ExpandPath('./')#" action="list" name="qryFiles" filter="!*.cfm" sort="name ASC" listinfo="name">
source
share