Orphan File Checker

Orphan File Checker

orphanCheck.rb

In this section, we will be looking at the inverse of invalid link files—I will show you how to find files that are not linked at all. An orphan file is any file on a web server that has lost its link. Not only do these files waste space, they also have the potential to confuse web page administrators with superfluous files.

I am what some may call a neat freak. I like to have things in order, just the way I like them. I despise clutter and wasted space. I treat my computer systems the same way, so I prefer to keep only the files that I need. If you have ever made a lot of changes or upgrades, or if you have had to share a system with other people, then you know how chaotic and disorganized filesystems ...

Get Wicked Cool Ruby Scripts now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.