Whether this path is a symbolic link.
(self)
| 707 | return S_ISREG(st.st_mode) |
| 708 | |
| 709 | def is_symlink(self): |
| 710 | """Whether this path is a symbolic link.""" |
| 711 | if self._entry: |
| 712 | try: |
| 713 | return self._entry.is_symlink() |
| 714 | except OSError: |
| 715 | return False |
| 716 | if self._lstat_result is _STAT_RESULT_ERROR: |
| 717 | return False |
| 718 | try: |
| 719 | st = self._stat(follow_symlinks=False) |
| 720 | except (OSError, ValueError): |
| 721 | return False |
| 722 | return S_ISLNK(st.st_mode) |
| 723 | |
| 724 | def _posix_permissions(self, *, follow_symlinks=True): |
| 725 | """Return the POSIX file permissions.""" |
nothing calls this directly
no test coverage detected