Hello,

If you are currently "in" Dir1 and Dir2 is a subdirectory of Dir1 then
you need this:

./ means current directory
Dir2/ is the directory you wish to access

putting them both together gets:

./Dir2/

That is the relative path *but* you must find out where it is starting from (i.e 
relative to where?). I suspect that the current path that CF is in is not Dir1 but 
perhaps your
application path instead maybe one level above ? You could try this:

./Dir1/Dir2/ and see if that works. (indicates one level about Dir1)

Of course all this is assuming that you have set up the virtual directory to start as 
your "root"

I am just starting out with CF myself so maybe someone more versed has other ideas.

Hope that helps,

Nelson

Douglas Jordon wrote:

> I can't get my cfdirectory to find the directory I need with a relative
> address:
>
> This works:
>
> <cfdirectory action="list"
> directory="/public/webroot/TheRealWebRoot/Dir1/Dir2/" name="stuff">
>
> The tag is in Dir1, and I want a list of Dir2
>
> but I want a relative path eg
>
> <cfdirectory action="list" directory="Dir2" name="stuff">
>
> I'm a unix dummy and am trying ./Dir2, ./Dir2/, /Dir2 etc but nothing
> works. No CF error is returned, either, I just get a RecordCount of 0.
>
> Help!
>
> Doug Jordon
> ------------------------------------------------------------------------------
> Archives: http://www.eGroups.com/list/cf-talk
> 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.eGroups.com/list/cf-talk
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