code: def listdir(self, dirname):
          
          if not self.isdir(dirname):
              raise errors.NotFoundError(None, None, "Could not find directory")
  
          entries = os.listdir(compat.as_str_any(dirname))
          entries = [compat.as_str_any(item) for item in entries]
          return entries
docs: Returns a list of entries contained within a directory.