def link_target(self): """ Return a link target for symlinks or an empty string otherwise. """ if self._link_target is None: self._link_target = '' if self.is_link or self.is_broken_link: self._link_target = filetype.get_link_target(self.location) return self._link_target
def link_target(self): """ Return a link target for symlinks or an empty string otherwise. """ if self._link_target is None: self._link_target = "" if self.is_link or self.is_broken_link: self._link_target = filetype.get_link_target(self.location) return self._link_target