Handbook
Glossary
Unique files
The
io
.
files
.
unique
vocabulary implements cross-platform unique file creation in a high-level and secure way.
Creating unique files:
unique-file
( prefix suffix -- path )
cleanup-unique-file
( ..a prefix suffix quot: ( ..a path -- ..b ) -- ..b )
Creating unique directories:
unique-directory
( -- path )
with-unique-directory
( quot -- path )
cleanup-unique-directory
( quot -- )
Safely changing files:
safe-replace-file
( ..a original-path quot: ( ..a copy-path -- ..b ) -- ..b )
safe-overwrite-file
( ..a original-path quot: ( ..a empty-path -- ..b ) -- ..b )