code: def stat(self, filename):
          
          # NOTE: Size of the file is given by .st_size as returned from
          # os.stat(), but we convert to .length
          try:
              len = os.stat(compat.as_bytes(filename)).st_size
          except OSError:
              raise errors.NotFoundError(None, None, "Could not find file")
          return StatData(len)
docs: Returns file statistics for a given path.