def _find_files(self, directory: Union[(Path, str)], extensions: Optional[Union[(list, str)]]=None) -> None:
    'Find files in directory with optional extensions.\n\n        Args:\n            directory (string)\n            keywords (list): e.g. ["SelfpacedRota", "ButtonPress] (optional)\n            extensions (list): e.g. [".json" or "tsv"] (optional)\n            verbose (bool): verbosity level (optional, default=True)\n        '
    files = []
    for (root, _, fnames) in os.walk(directory):
        fnames = [os.path.join(root, file) for file in fnames]
        fnames = self._keyword_search(fnames, extensions)
        if fnames:
            files.extend(fnames)
    self.files = files
Find files in directory with optional extensions.

Args:
    directory (string)
    keywords (list): e.g. ["SelfpacedRota", "ButtonPress] (optional)
    extensions (list): e.g. [".json" or "tsv"] (optional)
    verbose (bool): verbosity level (optional, default=True)
def _find_files(self, directory: Union[(Path, str)], extensions: Optional[Union[(list, str)]]=None) -> None:
    'Find files in directory with optional extensions.\n\n        Args:\n            directory (string)\n            keywords (list): e.g. ["SelfpacedRota", "ButtonPress] (optional)\n            extensions (list): e.g. [".json" or "tsv"] (optional)\n            verbose (bool): verbosity level (optional, default=True)\n        '
    files = []
    for (root, _, fnames) in os.walk(directory):
        fnames = [os.path.join(root, file) for file in fnames]
        fnames = self._keyword_search(fnames, extensions)
        if fnames:
            files.extend(fnames)
    self.files = files