I did dale, And that option Steve is telling the function to run it in a recursive mode :-( As Dale pointed out for cfdirectory... but Dale I did say that I am sure it was added to the CFMX V6.0 but I am not 100% sure.
On 3/31/07, Steve Onnis <[EMAIL PROTECTED]> wrote: > > I didn't Dale :) > > ------------------------------ > *From:* cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Dale Fraser > *Sent:* Saturday, 31 March 2007 4:00 PM > *To:* cfaussie@googlegroups.com > *Subject:* [cfaussie] Re: Delete non-empty folders > > > > Did everyone miss my post that CFDIRECTORY with RECURSE option will delete > folder all sub folder and files. > > > > Regards > Dale Fraser > > > > http://dale.fraser.id.au/blog/ > > > > > ------------------------------ > > *From:* cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Andrew Scott > *Sent:* Saturday, 31 March 2007 3:57 PM > *To:* cfaussie@googlegroups.com > *Subject:* [cfaussie] Re: Delete non-empty folders > > > > I believe the recursive came into effect from 6.0 onwards but do not quote > me on that. > > > > And Steve just a FYI for others too, the delete option whether it be DOS > or what ever, will also be a recursive function to delete non empty > directorys. The best way to test this is write a quick C/C++ to delete a > directory and you will find the same problem. > > > > Regards > > Andrew Scott > > > > > > On 3/31/07, *Simon Haddon* <[EMAIL PROTECTED]> wrote: > > Probably th easiest way would be to use the cfdirectory tag with > recurse=true. Once you have a list of files and directories then just loop > through them > > I use the building zip files in coldfusion and it works a treat. The only > difference is that you would delete instead > > In fact as I was typing this I look at my code and found that I have a > simple rmDir function that does it easily > > <cffunction name="rmDir" access="private" returntype="void" > output="false" hint="Create a directory"> > <cfargument name="directory" required="true" type="string" > hint="The name of the directory to create. Will create sub directories if > missing. If relative it will be created in teh coldfusion temp directory"> > > <!--- <cfoutput>Deleting #arguments.directory#<br/></cfoutput> > ---> > <cfdirectory action="delete" directory="#arguments.directory#" > recurse="true"> > > </cffunction> > > Cheers, > Simon > > On 30/03/07, *Steve Onnis* <[EMAIL PROTECTED] > wrote: > > Is there a way in JAVA to delete non-empty folders? I have been doing it > with COM but the site I am working on is UNIX and I can't use it. > > *Steve Onnis* *Director / Head Developer* > > [EMAIL PROTECTED] > > +61 3 9001 2258 > > 0401 667 996 > > www.inevative.com.au > > <http://www.novahost.com.au/> > <http://www.threesquares.com.au/><http://www.smsonline.com.au/> > > > > > > > > > > -- > Cheers > Simon Haddon > > > www.aegeon.com.au > Phone: +613 8676 4223 > Mobile: 0404 998 273 > > > > > > -- Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
<<attachment: image002.jpg>>
<<attachment: image004.jpg>>
<<attachment: image001.jpg>>
<<attachment: image005.jpg>>
<<attachment: image003.jpg>>