Check out the deltree.cfm custom tag in the onTap framework: 

http://www.turnkey.to/ontap/docs/index.cfm?netaction=customtags/core&hash=deltree.cfm

Shouldn't be too difficult to put that same code in a CFC method.

hth 

ike 

------ Original Message ------ 
From: Vernaillen Tim <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Sep 09, 2003 02:33 PM
Subject: Re: Crawl in directories

>Hi
>
>I'm trying to write a cfc to crawl down in a directory structure, here are the steps 
>if've to perform:
>
>- crawl down the structure beginning at the root directory (c:\storage)
>- if there are files get them and delete them
>- crawl up 1 level and delete directory
>- if there are files get them and delete them
>- crawl up 1 level and delete directory
>- .....
>
>example of my tree structure:
>
>C:\Storage
>C:\Storage\scanning
>C:\Storage\scanning\september\file.txt
>C:\Storage\scanning\september\week1\day3\RSH\1stfile.txt
>C:\Storage\scanning\september\week1\day3\RSH\2ndfile.txt
>C:\Storage\scanning\oktober
>C:\Storage\scanning\oktober\dir\124568
>C:\Storage\scanning\oktober\dir\124568\file.txt
>C:\Storage\fax
>....
>C:\Storage\email
>....
>
>Anybody have some ideas how to write a logic to crawl till the end of the structure 
>and then crawl up again without forgetting a directory to check?
>
>thanks in advance
>
>cheers
>
>Tim
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Reply via email to