code: def is_symlink(self):
          
          try:
              return S_ISLNK(self.lstat().st_mode)
          except OSError as e:
              if e.errno != ENOENT:
                  raise
              # Path doesn't exist
              return False
docs: Whether this path is a symbolic link.