(39 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Path.create_directory 3 2026-03-08 "Tomo man-pages"6 .SH NAME7 Path.create_directory \- make a directory8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Path.create_directory\ :\ func(path:\ Path,\ permissions\ =\ Int32(0o755),\ recursive\ =\ yes\ ->\ Result)13 .fi14 .SH DESCRIPTION15 Creates a new directory at the specified path with the given permissions. If any of the parent directories do not exist, they will be created as needed.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx lb23 l l l l.24 Name Type Description Default25 path Path The path of the directory to create. -26 permissions The permissions to set on the new directory. Int32(0o755)27 recursive If set to \fByes\fR, then recursively create any parent directories if they don't exist, otherwise fail if the parent directory does not exist. When set to \fByes\fR, this function behaves like \fBmkdir -p\fR. yes28 .TE29 .SH RETURN30 Either `Success` or `Failure(reason)`.32 .SH NOTES34 .SH EXAMPLES35 .EX36 (./new_directory).create_directory()!37 .EE38 .SH SEE ALSO39 .BR Tomo-Path (3)