Thanks David,
Number 2 worked well combined with several 'or's in an if stmt.

Richard

-----Original Message-----
From: Hayes, David [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 03, 2000 7:51 AM
To: CF-Talk
Subject: RE: cfdirectory listing, 


A few ideas:

1) Make a list of the filenames to exclude, then check for
listContains(<yourlist>,getFile.name) EQ 0;
2) See if RIGHT(getFile.name,4) EQ ".cfm";
3) Use Regular expressions to validate the filenames.

-----Original Message-----
From: Richard Kern [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 02, 2000 4:10 PM
To: CF-Talk
Subject: cfdirectory listing, 


        
I am looking for some direction, here is the problem

The page allows the user to select the directory and a specific file to
delete.  I want to exclude specific groups of file like *.cfm from the
listing ( not using the filter on cfdirectory).  The approach so far is to
use cfif but it is limited to specific files and I have a lot of file with
similiar extensions.

So how do I restrict the cfdirectory or cfif or do I need to use another
approach?


        <CFDIRECTORY ACTION="LIST"
             DIRECTORY="#walkdir#"
             NAME="getFile">    
------------------------


        <CFIF (Type is 'file') and (Name NEQ '.') and (Name NEQ '..') and
(Name NEQ 'index.cfm') and (Name NEQ '*.cfm')>
                        <A
HREF="#CGI.SCRIPT_NAME#?Path=#WalkPath#\#Name#">#Name#</A>
</CFIF>

Thanks,
Richard
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to