Forum Moderators: phranque

Message Too Old, No Replies

Finding and removing unused files

         

flycast

8:04 pm on Feb 12, 2005 (gmt 0)

10+ Year Member



I have been handed a site to maintain that has a lot of unused files and files in strange places. I am looking for a script that will crawl the site and find unused files and possibly put these files in a different directory.

Any Ideas?

AndrewStuart

6:04 pm on Feb 13, 2005 (gmt 0)

10+ Year Member



Your best bet is to spider/crawl the site and dump it into a new directory. This works for static (html) sites - dynamic ones it wont. If the spider/crawler preserves file names and relative directories then you'll get everything. The rest you can throw. There is a prog called Folder Match (search at download.com) which compares folders very nicely side by side so you can see the difference.

As for the spider/crawler cant say whats out there cos I use my own. Is your site static?