Whether this path is a socket.
(self)
| 938 | return False |
| 939 | |
| 940 | def is_socket(self): |
| 941 | """ |
| 942 | Whether this path is a socket. |
| 943 | """ |
| 944 | try: |
| 945 | return S_ISSOCK(self.stat().st_mode) |
| 946 | except (OSError, ValueError): |
| 947 | return False |
| 948 | |
| 949 | def samefile(self, other_path): |
| 950 | """Return whether other_path is the same or not as this file |