docs: def _list_files(self, path):
          """lists files in a given directory"""
          files = []
          for f in glob.glob(pathname=path):
              files.append(f)
          files.sort()
          return files