1234567891011121314151617181920212223242526272829303132333435 | '\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Path.parent 3 2026-09-01 "Tomo man-pages"
.SH NAME
Path.parent \- get parent directory
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Path.parent\ :\ func(path:\ Path\ ->\ Path?)
.fi
.SH DESCRIPTION
Returns the parent directory of the file or directory at the specified path.
.SH ARGUMENTS
.TS
allbox;
lb lb lbx
l l l.
Name Type Description
path Path The path of the file or directory.
.TE
.SH RETURN
The path of the parent directory or `none` if the path is `(/)` (the file root).
.SH EXAMPLES
.EX
assert (./path/to/file.txt).parent() == (./path/to)
.EE
.SH SEE ALSO
.BR Tomo-Path (3)
|