code: def GetLinkedFileEntry(self):
      
      link = self._GetLink()
      if not link:
        return None
  
      # TODO: is there a way to determine the link inode number here?
      link_inode = None
  
      parent_path_spec = getattr(self.path_spec, 'parent', None)
      path_spec = tsk_path_spec.TSKPathSpec(
          location=link, parent=parent_path_spec)
  
      root_inode = self._file_system.GetRootInode()
      is_root = bool(
          link == self._file_system.LOCATION_ROOT or (
              link_inode is not None and root_inode is not None and
              link_inode == root_inode))
  
      return TSKFileEntry(
          self._resolver_context, self._file_system, path_spec, is_root=is_root)
docs: Retrieves the linked file entry, e.g. for a symbolic link.
  
      Returns:
        TSKFileEntry: linked file entry or None.