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

--~--~---------~--~----~------------~-------~--~----~
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: phone.jpg>>

<<attachment: web.jpg>>

<<attachment: inevativeLogo_small.jpg>>

GIF image

<<attachment: mobile.jpg>>

<<attachment: email.jpg>>

GIF image

GIF image

Reply via email to