why not try
<cfset path = ExpandPath("dir2")>
This will do the trick:-)
-----Original Message-----
From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 20 May 2000 3:55 AM
To: Cold Fusion List
Subject: relative paths
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.