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
예제 #2
0
 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