Handbook
Glossary
with-unique-directory ( quot -- path )
Unique files
Prev:
unique-directory ( -- path )
Next:
cleanup-unique-directory ( quot -- )
Vocabulary
io
.
files
.
unique
Inputs
quot
a
quotation
Outputs
path
a pathname string
Word description
Creates a directory with
unique-directory
and calls the quotation using
with-directory
to set it as the
current-directory
.
See also
unique-directory
,
cleanup-unique-directory
Definition
USING:
io.directories
;
IN:
io.files.unique
::
with-unique-directory
( quot -- path )
unique-directory
:>
path path quot
with-directory
path
;
inline