Exactly what I was after. I don't know how I missed it! Thanks
Darren > -----Original Message----- > From: Geoff Bowers [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 9 July 2003 1:47 PM > To: CFAussie Mailing List > Subject: [cfaussie] Re: Testing for a verity collection? > > > Darren, > > You should use the new feature of CFMX to list available collections: > > <cfcollection action="list" name="q"> > <cfdump var="#q#"> > > -- geoff > http://www.daemon.com.au/ > > Darren Tracey wrote: > > I've got an app that uses a verity collection. > > I want to automate the installation process as much as > possible, and this means that I don't want the users > responsible for installing to have to go into the CF > Administrator and manually create the collection. > > I'm fine with the code to create a collection programmatically. > > The question is, how do you test if a collection already > exists on your server? > > The best I can think of is to do a directoryExists on the > path and collection name where the collection is supposed to > be created. > > Is this the best way to handle this? > > Will it have any odd side-effects or conditions where it > won't behave as expected? i.e. Is it possible for the > collection to be not there but the directory to still exist > (barring malicious user tampering, of course)? > > > > Also, on a side note, what's the system variable that holds > the path to the ColdFusion program directory (C:\CFUSIONMX\)? > > My brain's sleep deprived today and it won't tell me what > its called. > > > > Thanks a lot. > > > > Darren Tracey > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
