Can you delete a populated directory with cfdirectory? If so, absolutely. <cfdirectory action="delete" <cfiectory action="create"
Just didn't think you could delete a directory with a single cfdirectory tag if that directory wasn't empty. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Jennifer Gavin-Wear [mailto:[EMAIL PROTECTED] Sent: Monday, January 16, 2006 5:40 PM To: CF-Talk Subject: RE: Delete directory contents Not sure if it's possible to delete a populated directory and then recreate it to achieve the same? -----Original Message----- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: 16 January 2006 18:25 To: CF-Talk Subject: RE: Delete directory contents You could cfececute a batch file/shell script or native command to delete "path\*.*" else, I think you'll be stuck with having to cfdirectory the directory then loop over the results and delete each individual file. I'm still on 6.1 here so I don't know whether or not CF7 has made this easier. ....:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Ken [mailto:[EMAIL PROTECTED] Sent: Monday, January 16, 2006 1:10 PM To: CF-Talk Subject: Delete directory contents Hi. Is there a custom function to empty the contents of a folder. I want to keep the folder. Just delete all files in it. Thanks, Ken ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229713 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54