code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(38 lines)
1 '\" t
2 .\" Copyright (c) 2026 Bruce Hill
3 .\" All rights reserved.
4 .\"
5 .TH Path.set_owner 3 2026-03-08 "Tomo man-pages"
6 .SH NAME
7 Path.set_owner \- set the owner
8 .SH LIBRARY
9 Tomo Standard Library
10 .SH SYNOPSIS
11 .nf
12 .BI Path.set_owner\ :\ func(path:\ Path,\ owner:\ Text?\ =\ none,\ group:\ Text?\ =\ none,\ follow_symlinks:\ Bool\ =\ yes\ ->\ Result)
13 .fi
14 .SH DESCRIPTION
15 Set the owning user and/or group for a path.
18 .SH ARGUMENTS
20 .TS
21 allbox;
22 lb lb lbx lb
23 l l l l.
24 Name Type Description Default
25 path Path The path to change the permissions for. -
26 owner Text? If non-none, the new user to assign to be the owner of the file. none
27 group Text? If non-none, the new group to assign to be the owner of the file. none
28 follow_symlinks Bool Whether to follow symbolic links. yes
29 .TE
30 .SH RETURN
31 Either `Success` or `Failure(reason)`.
33 .SH EXAMPLES
34 .EX
35 (./file.txt).set_owner(owner="root", group="wheel")!
36 .EE
37 .SH SEE ALSO
38 .BR Tomo-Path (3)