> I'm using <cfdirectory to create/rename and delete directory > structures. The delete function works as long as the > directory I created is empty. > How can I delete a directory structure with multiple > dir/file(s) within? I would also need a "copy" function to > copy whole directory structures. > > Whats the best way of doing the delete and copy?
You'll have to recurse over the sub-folders, it's how a directory copy work Loop over the outside directory to get all folders, then go into the folders and repeat until you're out of folders It'll require either using CFMODULE, CF_ or some clever stack control Philip Arnold Technical Director Certified ColdFusion Developer ASP Multimedia Limited Switchboard: +44 (0)20 8680 8099 Fax: +44 (0)20 8686 7911 www.aspmedia.co.uk www.aspevents.net An ISO9001 registered company. ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
