Try this
<cfdirectory action="LIST" directory="#dir#" name="qName" sort="type ASC, name DESC">
<cfset bDir = 0>
<cfloop query="qName">
<cfif qName.type IS "dir" AND NOT(ListFind(".,..",qName.name))>
<cfset bDir = 1>
<cfbreak>
<cfelseif qName.type IS "file">
<cfbreak>
</cfif>
</cfloop>
<cfif bDir>
Directory found.
<cfelse>
No directory.
</cfif>
-----Original Message-----
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 12 maart 2002 16:54
To: CF-Talk
Subject: RE: <CFDIRECTORY
At 10:36 AM 3/12/2002 -0500, you wrote:
>Check out your cfif. You are testing if MyListr.name IS "." or MyList.name
>IS ".." and then if that is true, you are testing if MyList.name IS "",
>which CANNOT be true, since you know that MyListr.name IS "." or MyList.name
>IS ".."
>
>Your original email seems to have a typo. Do you want to see if there are
>any directories under c:\temp\?
Yes...just directories.
>Or do you want to see if there are any
>documents within c:\temp?
>
>Kathryn Butterly
>Web Developer
>Washington Mutual Finance
>813 632-4490
>[EMAIL PROTECTED]
>
>
>-----Original Message-----
>From: phumes1 [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, March 12, 2002 10:21 AM
>To: CF-Talk
>Subject: Re: <CFDIRECTORY
>
>
>Hi,
>
>I want to be able to check to see if any directories exist with c:\temp and
>if so, redirect the output
>to different templates.
>
>What am I doing wrong below?
>
><cfdirectory directory="c:\test" name="MyList">
>
><cfif MyListr.name IS "." or MyList.name IS ".." >
> <cfif MyList.name IS "">
> <h3>No directories found in c:\test...</h3>
> <cfelse>
> <h3>Directory found...</h3>
> </cfif>
></cfif>
>
>
>
______________________________________________________________________
Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists