code: def stat(self, follow_symlinks=True):
          
          if follow_symlinks:
              if self._statresult_symlink is None:
                  file_object = self._filesystem.resolve(self.path)
                  if self._filesystem.is_windows_fs:
                      file_object.st_nlink = 0
                  self._statresult_symlink = file_object.stat_result.copy()
              return self._statresult_symlink
  
          if self._statresult is None:
              file_object = self._filesystem.lresolve(self.path)
              self._inode = file_object.st_ino
              if self._filesystem.is_windows_fs:
                  file_object.st_nlink = 0
              self._statresult = file_object.stat_result.copy()
          return self._statresult
docs: Return a stat_result object for this entry.
  
          Args:
              follow_symlinks: If False and the entry is a symlink, return the
                  result for the symlink, otherwise for the object it points to.