(37 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Path.matches_glob 3 2026-03-14 "Tomo man-pages"6 .SH NAME7 Path.matches_glob \- check if a path matches a glob8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Path.matches_glob\ :\ func(path:\ Path,\ glob:\ Text\ ->\ Bool)13 .fi14 .SH DESCRIPTION15 Return whether or not a path matches a given glob.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 path Path The path to check.26 glob Text The glob pattern to check.27 .TE28 .SH RETURN29 Whether or not the path matches the given glob.31 .SH EXAMPLES32 .EX33 assert (./file.txt).matches_glob("*.txt")34 assert (./file.c).matches_glob("*.{c,h}")35 .EE36 .SH SEE ALSO37 .BR Tomo-Path (3)