(37 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Path.copy_to 3 2026-03-16 "Tomo man-pages"6 .SH NAME7 Path.copy_to \- copy a file or directory8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Path.copy_to\ :\ func(path:\ Path,\ dest:\ Path,\ overwrite\ =\ no\ ->\ Result)13 .fi14 .SH DESCRIPTION15 Copies the file or directory from one location to another. This is the same behavior as `cp -r -T src dest` or `cp -rf -T src dest` (if `overwrite` is enabled).18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx lb23 l l l l.24 Name Type Description Default25 path Path The path to copy. -26 dest Path The destination to copy the path to. -27 overwrite Whether to permit overwriting the destination if it is an existing file or directory. no28 .TE29 .SH RETURN30 Either `Success` or `Failure(reason)`.32 .SH EXAMPLES33 .EX34 (./file.txt).move(/tmp/renamed.txt)!35 .EE36 .SH SEE ALSO37 .BR Tomo-Path (3)