(36 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Path.children 3 2026-03-14 "Tomo man-pages"6 .SH NAME7 Path.children \- get children of a directory8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Path.children\ :\ func(path:\ Path,\ include_hidden\ =\ no\ ->\ [Path])13 .fi14 .SH DESCRIPTION15 Returns a list of children (files and directories) within the directory at the specified path. Optionally includes hidden files. Child ordering 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 A list of paths for the children.31 .SH EXAMPLES32 .EX33 assert (./directory).children(include_hidden=yes) == [(./directory/.git), (./directory/foo.txt)]34 .EE35 .SH SEE ALSO36 .BR Tomo-Path (3)