aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Path.parent.3
blob: 7af4f98faeb5f0f298ef1e2e3c4ab60824a586b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Path.parent 3 2025-11-29 "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.

.SH EXAMPLES
.EX
assert (./path/to/file.txt).parent() == (./path/to/)
.EE
.SH SEE ALSO
.BR Tomo-Path (3)