(37 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Path.unique_directory 3 2026-03-08 "Tomo man-pages"6 .SH NAME7 Path.unique_directory \- create a directory with a unique name8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Path.unique_directory\ :\ func(path:\ Path\ ->\ Path)13 .fi14 .SH DESCRIPTION15 Generates a unique directory path based on the given path. Useful for creating temporary directories.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 path Path The base path for generating the unique directory. The last six letters of this path must be \fBXXXXXX\fR.26 .TE27 .SH RETURN28 A unique directory path after creating the directory.30 .SH EXAMPLES31 .EX32 created := (/tmp/my-dir.XXXXXX).unique_directory()33 assert created.is_directory() == yes34 created.remove()!35 .EE36 .SH SEE ALSO37 .BR Tomo-Path (3)