(37 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Path.resolved 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Path.resolved \- resolve a path8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Path.resolved\ :\ func(path:\ Path,\ relative_to\ =\ (./)\ ->\ Path)13 .fi14 .SH DESCRIPTION15 Resolves the absolute path of the given path relative to a base path. By default, the base path is the current directory.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx lb23 l l l l.24 Name Type Description Default25 path Path The path to resolve. -26 relative_to The base path for resolution. (./)27 .TE28 .SH RETURN29 The resolved absolute path.31 .SH EXAMPLES32 .EX33 assert (~/foo).resolved() == (/home/user/foo)34 assert (./path/to/file.txt).resolved(relative_to=(/foo)) == (/foo/path/to/file.txt)35 .EE36 .SH SEE ALSO37 .BR Tomo-Path (3)