def listdir(self):
        ls = os.listdir(self.folder)
        if self.file_pattern:
            return [x for x in ls if fnmatch.fnmatch(x, self.file_pattern)]
        else:
            return ls
List directory and filter files by file_pattern.
dataset/ETHPy150Open harryliu/edwin/edwinAgent/site_packages/logwatch_glob.py/LogWatcher.listdir