FileHunter

November 5th, 2009 by Alex Leave a reply »

Ever need to clean a bunch of files off a filesystem? It’s easy enough as long as you know what the files are called.

However, there are certain types of files that some users might want to disguise on a server, which shouldn’t be there. FileHunter takes a folder full of files, “needles” and searches (optionally recursively) the directory “haystack” for occurances of those files – regardless of their filenames, extensions etc. It can then optionally remove those files too.

While it didn’t take me very long to write this, I thought it might be generally useful so it’s available here under GPL v3 or any later version.

It requires Python v2.5 or later and is only tested on Linux (Ubuntu 8.04) at the moment. It’s been run on a filesystem with about 160 needles and 2 million files in the haystack without incident. In theory it should work on Windows too but standard disclaimers apply.

FileHunter-0.2.tar.gz

There’s a newer version available here.

Be Sociable, Share!
Advertisement

Leave a Reply