code: def _islinklike(dir_path):
      '''
      Parameters
      ----------
      dir_path : str
          Directory path.
  
      Returns
      -------
      bool
          ``True`` if :data:`dir_path` is a link *or* junction.
      '''
      dir_path = ph.path(dir_path)
      if platform.system() == 'Windows':
          if dir_path.isjunction():
              return True
      elif dir_path.islink():
          return True
      return Falsf _islinklike(dir_path):
      '''
      Parameters
      ----------
      dir_path : str
          Directory path.
  
      Returns
      -------
      bool
          ``True`` if :data:`dir_path` is a link *or* junction.
      '''
      dir_path = ph.path(dir_path)
      if platform.system() == 'Windows':
          if dir_path.isjunction():
              return True
      elif dir_path.islink():
          return True
      return False
docs: Parameters
      ----------
      dir_path : str
          Directory path.
  
      Returns
      -------
      bool
          ``True`` if :data:`dir_path` is a link *or* junction.