>- see footer for list info -< Well, under the hood I am sure CF is simply leveraging java.io ;-)
My point was you do not need a CFTRY/CFCATCH around the Java statement when using mkdirs- it will not throw an error of the directory does not exists - it will create it or ignore it depending on existence. N -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Moretti Sent: 06 September 2005 16:19 To: Coldfusion Development Subject: Re: [CF-Dev] CFFile Folder creation >- see footer for list info -< Robertson-Ravo, Neil (RX) wrote: >>- see footer for list info -< >> >> >Honestly Rich, aside from Sandbox as you state - if you do use that Java >function (and you are allowed to) then use that - it is clean and fast - >aside from that a cftry will do the job.. > > Don't bother using the java statement. For what you are using it for it is unreadable and does not give you any benefit in increased processing speed etc etc etc. Use the DirectoryExists() and <cfdirectory> functions and tags as has been stated by others. This is a MUCH easier and cleaner solution than using the java call surrounded by a cftry/cfcatch. I'm not saying you shouldn't protect your applications using cftry/cfcatch, but a good programmer will always write their applications to succeed first, rather than to fail. Stephen _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
