remove debug info
parent
4f40f10b88
commit
2dffb31e53
|
@ -22,12 +22,11 @@ IN: io.files.unique
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
||||||
: make-unique-file ( prefix suffix -- path stream )
|
: make-unique-file ( prefix suffix -- path stream )
|
||||||
break
|
|
||||||
temporary-path -rot
|
temporary-path -rot
|
||||||
[
|
[
|
||||||
unique-length random-name swap 3append path+
|
unique-length random-name swap 3append path+
|
||||||
dup (make-unique-file)
|
dup (make-unique-file)
|
||||||
] 3curry unique-retries retry break ;
|
] 3curry unique-retries retry ;
|
||||||
|
|
||||||
: with-unique-file ( quot -- path )
|
: with-unique-file ( quot -- path )
|
||||||
>r f f make-unique-file r> rot [ with-stream ] dip ; inline
|
>r f f make-unique-file r> rot [ with-stream ] dip ; inline
|
||||||
|
|
Loading…
Reference in New Issue