'\" t .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" .TH Path.unique_directory 3 2025-11-29 "Tomo man-pages" .SH NAME Path.unique_directory \- create a directory with a unique name .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf .BI Path.unique_directory\ :\ func(path:\ Path\ ->\ Path) .fi .SH DESCRIPTION Generates a unique directory path based on the given path. Useful for creating temporary directories. .SH ARGUMENTS .TS allbox; lb lb lbx l l l. Name Type Description path Path The base path for generating the unique directory. The last six letters of this path must be \fBXXXXXX\fR. .TE .SH RETURN A unique directory path after creating the directory. .SH EXAMPLES .EX assert created := (/tmp/my-dir.XXXXXX).unique_directory() == (/tmp/my-dir-AwoxbM/) assert created.is_directory() == yes created.remove() .EE .SH SEE ALSO .BR Tomo-Path (3)