Unfortunately, Windows considers the "." and ".." to be valid directories (current 
directory and parent directory respectively) so
you are always going to see those in a directory list.  The best thing to do is to 
filter them out in your code.

<cfif left(name,1) neq ".">
  do something
</cfif>

HTH,

--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com  - 631-737-4668 x101
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
>>> Find out how iMS Stacks up to the competition: 
>http://www.coolfusion.com/imssecomparison.cfm

----- Original Message -----
From: "Paul Giesenhagen" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, March 21, 2002 4:42 PM
Subject: cfdirectory


> I am using the cfdirectory tag to get a list of directories .. how do not
> show the two top directories.
>
> my directory looks like this
> .
> .
> dir1
> dir2
> dir3
>
> I just want to show the dir1,dir2,dir3 and not the period directories
> (whatever they are called).
>
> Thanks
> Paul Giesenhagen
> QuillDesign
> http://www.quilldesign.com
> SiteDirector v2.0 - Commerce Builder
>
>
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to