(37 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Path.each_child 3 2026-03-14 "Tomo man-pages"6 .SH NAME7 Path.each_child \- iterate over children of a directory8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Path.each_child\ :\ func(path:\ Path,\ include_hidden\ =\ no\ ->\ func(->Path?)?)13 .fi14 .SH DESCRIPTION15 Returns an iterator over the children (files and directories) within the directory at the specified path. Optionally includes hidden files. Iteration order is not specified.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx lb23 l l l l.24 Name Type Description Default25 path Path The path of the directory. -26 include_hidden Whether to include hidden files (those starting with a \fB.\fR). no27 .TE28 .SH RETURN29 An iterator over the children in a directory or `none` if the path is not a directory or a symlink to a directory.31 .SH EXAMPLES32 .EX33 for child in (/dir).each_child()34 say("Child: $child")35 .EE36 .SH SEE ALSO37 .BR Tomo-Path (3)