def listdir(self):
        """List directory and filter files by extension.
        You may want to override this to add extra logic or globbing
        support.
        """
        ls = os.listdir(self.folder)
        if self.extensions:
            return [x for x in ls if os.path.splitext(x)[1][1:] \
                                           in self.extensions]
        else:
            return ls
List directory and filter files by extension.
        You may want to override this to add extra logic or globbing
        support.
        
recipes/Python/577968_Log_watcher_tail_F_log/recipe-577968.py