<cfif ListLen(thisDirectory,"/\") GT 1>
<cfset parentDirectory =
ListDeleteAt(thisDirectory,ListLen(thisDirectory,"/\"),"/\")>
</cfif>

Not tested

You are aware that ExpandPath will give you the path starting from the
template called by the request? This may not be the directory of the
template where the code is (if you are in an include in a different
directory)!

Pascal

> -----Original Message-----
> From: Mickael [mailto:[EMAIL PROTECTED]
> Sent: woensdag 17 maart 2004 17:16
> To: CF-Talk
> Subject: Path Question
>
> Hi All,
>
> I use this code to find the current folder that I am in for
> cfdirectory
>
> <cfset thisPath=ExpandPath("*.*")>
> <cfset thisDirectory=GetDirectoryFromPath(thisPath)>
>
> How do I get the folder the that is up one level?
>
> Thanks
>
> Mike
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to