main
Download
37 lines 842 BGroffModified 2026-03-09 raw
12345678910111213141516171819202122232425262728293031323334353637
'\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Path.unique_directory 3 2026-03-08 "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
created := (/tmp/my-dir.XXXXXX).unique_directory()
assert created.is_directory() == yes
created.remove()!
.EE
.SH SEE ALSO
.BR Tomo-Path (3)