code: def glob(self, filename):
          
          # Only support prefix with * at the end and no ? in the string
          star_i = filename.find('*')
          quest_i = filename.find('?')
          if quest_i >= 0:
              raise NotImplementedError(
                  "{} not supported by compat glob".format(filename))
          if star_i != len(filename) - 1:
              # Just return empty so we can use glob from directory watcher
              #
              # TODO: Remove and instead handle in GetLogdirSubdirectories.
              # However, we would need to handle it for all non-local registered
              # filesystems in some way.
              return []
          filename = filename[:-1]
          client = boto3.client("s3")
          bucket, path = self.bucket_and_path(filename)
          p = client.get_paginator("list_objects")
          keys = []
          for r in p.paginate(Bucket=bucket, Prefix=path):
              for o in r.get("Contents", []):
                  key = o["Key"][len(path):]
                  if key:  # Skip the base dir, which would add an empty string
                      keys.append(filename + key)
          return keys
docs: Returns a list of files that match the given pattern(s).