Path.isSocket

bool isSocket() const

Returns true if the path is a socket.

On POSIX, this checks if the file type is a socket (using stat and S_ISSOCK). On Windows, always returns false.

Inspired by Python's pathlib.Path.is_socket.

Returns

true if the path is a socket, false otherwise.