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\?  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>         


______________________________________________________________________
Why Share?
  Dedicated Win 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=coldfusionc
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

Reply via email to