I have a pretty big legacy site with literally thousands of PDFs that are sometimes accounting for in a database, but often are just links on the page, and are stored in most every directory on the site.
I have written a php crawler to follow all the links on my site, and then I am comparing that against a dump of the directory structure, but is there something easier?