safe-overwrite-file ( ..a original-path quot: ( ..a empty-path -- ..b ) -- ..b )
Unique files

Prev:safe-replace-file ( ..a original-path quot: ( ..a copy-path -- ..b ) -- ..b )


Vocabulary
io.files.unique

Inputs
original-patha pathname string
quota quotation


Outputs
None

Word description
Calls the quot quotation with a unique file, and then when the quotation finishes, replaces the file at original-path with the unique file, atomically.

Definition