the file called in the request, NOT the file where the function is
called. It is not necessarily the same file (or even in the same
directory). Also, you can do ExpandPath("./") to get the directory
directly.
Pascal
> -----Original Message-----
> From: Adkins, Randy [mailto:[EMAIL PROTECTED]
> Sent: 14 July 2004 14:56
> To: CF-Talk
> Subject: Baffled by DirectoryExists
>
> I am baffled why one will return true and the other false.
> In this first one, I am specifying the path.
> The second one, I am using the expand path.
>
> Why would one say no it does not exists when the
> second one will. The *.* should have no affect on a
> directory exists function.
>
> Please tell me it is something simple and I just have not
> seen it yet due to lack of caffeine.
>
>
>
> <CFOUTPUT>
> <cfset thisDir = "c:\inetpub\wwwrooot\">
> First Path: #thisDir#<BR>
> Directory Exists: #DirectoryExists(thisDir)#<BR>
>
> <BR>
> <cfset thisPath = ExpandPath("*.*")>
> Second Path: #thispath#<BR>
> <cfset thisDirectory = GetDirectoryFromPath(thisPath)>
> Directory Exists: #DirectoryExists(thisDirectory)#
> </CFOUTPUT>
>
>
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

