Chris,

There's a cf_deltree tag and a cfx_deltree tag in the Allaire tag gallery.
I imagine the cf_deltree tag does just that - descends to the outermost
subdirectories, loops through and deletes files, then the directory, then
works its way up the tree.  Probably the easiest way to go if you can't
install cfx's.  I'm not sure if the cfx_deltree works the same way or if it
simply calls an Windows OS function that does deletion, but it's most likely
faster.

Jim


----- Original Message -----
From: "Chris Montgomery" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 12, 2001 7:52 PM
Subject: Deleting Directories, Subdirectories, and files


> What's the easiest way to delete a directory with two subdirectories and
> files in those subdirectories since CFDirectory won't delete directories
> unless they're empty? Do I need to loop thru each directory/subdirectory
and
> get a list of the files in them, then loop again and delete them one by
one?
>
> TIA,
>
> Chris Montgomery             [EMAIL PROTECTED]
>
> Web Development & Consulting http://www.astutia.com
> Allaire Consulting Partner
> 210-490-3249/888-745-7603    Fax 210-490-4692
> AIM: astutiaweb; ICQ: 7381282; Firetalk: Ag78
>
> Transmitted: 20:52 CST


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to