123456789101112131415161718192021222324252627282930313233343536 | '\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Path.children 3 2026-03-14 "Tomo man-pages"
.SH NAME
Path.children \- get children of a directory
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Path.children\ :\ func(path:\ Path,\ include_hidden\ =\ no\ ->\ [Path])
.fi
.SH DESCRIPTION
Returns a list of children (files and directories) within the directory at the specified path. Optionally includes hidden files. Child ordering is not specified.
.SH ARGUMENTS
.TS
allbox;
lb lb lbx lb
l l l l.
Name Type Description Default
path Path The path of the directory. -
include_hidden Whether to include hidden files (those starting with a \fB.\fR). no
.TE
.SH RETURN
A list of paths for the children.
.SH EXAMPLES
.EX
assert (./directory).children(include_hidden=yes) == [(./directory/.git), (./directory/foo.txt)]
.EE
.SH SEE ALSO
.BR Tomo-Path (3)
|