def listdir(self):
        """List directory and filter files by extension.
        You may want to override this to add extra logic or
        globbling support.
        """
        ls = os.listdir(self.folder)
        if self.extensions:
            foo= [x for x in ls if os.path.splitext(x)[1][1:] \
                                           in self.extensions]
	    return foo
        else:
            return ls
dataset/ETHPy150Open sensepost/Snoopy/snoopy/server/bin/pytail_helper.py/LogWatcher.listdir/original