ID EN
Pathlib

is_socket

Python 3.11

Return True if the path points to a Unix socket (or a symbolic link pointing to a Unix socket), False if it points to another kind of file.

Syntax

PYTHON
Path.is_socket()