fileExists(expandPath("relative/path"))
expandPath just does an expansion of the relative path. If it did a
filesystem check and raised an exception, it'd be impossible to use it
in CFFILE to create new files (among various other things).
cheers,
barneyb
On 3/22/07, Jones Eric R Ctr 8 AF Det 1/AFNOC
<[EMAIL PROTECTED]> wrote:
> Ok here's a weird on for you. I'm debugging a 3rd partied custom tag and
> they are doing on an expand path on a file which may or may not exist.
>
> The issue is that when it doesn't exist it returns a struct which is
> empty. Shouldn't expandpath throw an error if it can't find the file?
> How I can I check to see if the file exists if I don't know it's full
> path (to use file exist)?
>
> ---------------_____________________________________________________
>
> Eric R. Jones
> Senior Web Application Developer, AFNOC/NCD
--
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/
Got Gmail? I have 100 invites.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 &
Flex 2
Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273389
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4