Does anyone know of a PHP script that will find orphan files on a web site? - i.e. files that are not referenced in any other files, nor in a database.

I've just inherited a site that has not been maintained very well. There appear to be hundreds of files scattered about which are not referenced anywhere - I need to be sure that they are true orphans before I remove them.