(36 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Path.is_socket 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Path.is_socket \- check if a path is a socket8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Path.is_socket\ :\ func(path:\ Path,\ follow_symlinks\ =\ yes\ ->\ Bool)13 .fi14 .SH DESCRIPTION15 Checks if the path represents a socket. Optionally follows symbolic links.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx lb23 l l l l.24 Name Type Description Default25 path Path The path to check. -26 follow_symlinks Whether to follow symbolic links. yes27 .TE28 .SH RETURN29 `True` if the path is a socket, `False` otherwise.31 .SH EXAMPLES32 .EX33 assert (./socket).is_socket() == yes34 .EE35 .SH SEE ALSO36 .BR Tomo-Path (3)