the first obvious "gotcha" i can see here is including files
dynamically:
<cfloop index="afileName" list="#aListOfFileNames#">
<cfinclude template="#afileName#.cfm">
</cfloop>
other than that, i don't know of any tools, but i did once see a perl
script that searched out unused images... would need extensive hacking,
but should be findable using a quality search engine.
Another approach might be to log every file, let your site run for a
while (possibly spidering it or some other heavy use scenario) and then
compare the list of logged files with the list of all files. I wouldn't
just delete the difference but it could give you a place to start...
/t
>-----Original Message-----
>Subject: [SOT] Finding which files in a site aren't used anymore
>From: Anthony Prato <[EMAIL PROTECTED]>
>Date: Wed, 31 Aug 2005 12:37:59 -0700
>Thread:
>http://www.houseoffusion.com/cf_lists/index.cfm/method=messages
>&threadid=42023&forumid=4#217045
>
>I'm back to a problem that I run into a lot. I started working at a
>place that does not do a good job of cleaning up files in a websites
>directory. (as well as tons of unused stored procedures and views)
>I've found plenty of tools to track down database objects, even some
>that check your files for calls to the DB objects; I just can't find
>anything for cleaning up the files. I know I can get a list of all the
>files in all sub directories and grep for each, but I'm hoping someone
>can recommend me a nicer GUI utility instead. Another nice feature
>would be smarter than grep and if file A calls file B but nothing
>calls file A then they are both obsolete. Does anyone know of a
>utility like this. In the past I've used grep or similar but in this
>case there are just too many files.
>
>Anthony
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217058
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54