Eric, ExpandPath doesn't actually do anything with the file. It simply returns a string based on the relative path of the file that is callling the ExpandPath function. You will need to the test for the file using FileExists() and pop in the string that is created by the ExpandPath Function.
Dean 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 > Barksdale AFB, LA > DSN 781-7784 > Comm (318) 456-7784 > NIPRNET: [EMAIL PROTECTED] > SIPRNET: [EMAIL PROTECTED] > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273391 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

