Whether this path is a symbolic link.
(self)
| 1296 | return ino == parent_ino |
| 1297 | |
| 1298 | def is_symlink(self): |
| 1299 | """ |
| 1300 | Whether this path is a symbolic link. |
| 1301 | """ |
| 1302 | try: |
| 1303 | return S_ISLNK(self.lstat().st_mode) |
| 1304 | except OSError as e: |
| 1305 | if not _ignore_error(e): |
| 1306 | raise |
| 1307 | # Path doesn't exist |
| 1308 | return False |
| 1309 | except ValueError: |
| 1310 | # Non-encodable path |
| 1311 | return False |
| 1312 | |
| 1313 | def is_block_device(self): |
| 1314 | """ |
no test coverage detected