Whether this path is a symbolic link.
(self)
| 474 | return S_ISREG(st.st_mode) |
| 475 | |
| 476 | def is_symlink(self): |
| 477 | """Whether this path is a symbolic link.""" |
| 478 | st = self._stat(follow_symlinks=False, ignore_errors=True) |
| 479 | if st is None: |
| 480 | return False |
| 481 | return S_ISLNK(st.st_mode) |
| 482 | |
| 483 | |
| 484 | PathInfo = _WindowsPathInfo if os.name == 'nt' else _PosixPathInfo |