Clean up temp-directory
parent
3a9839a168
commit
f1ee3dcb32
|
@ -265,12 +265,10 @@ DEFER: copy-tree-into
|
||||||
?resource-path exists? ;
|
?resource-path exists? ;
|
||||||
|
|
||||||
: temp-directory ( -- path )
|
: temp-directory ( -- path )
|
||||||
"temp" resource-path
|
"temp" resource-path dup make-directories ;
|
||||||
dup exists? not
|
|
||||||
[ dup make-directory ]
|
|
||||||
when ;
|
|
||||||
|
|
||||||
: temp-file ( name -- path ) temp-directory prepend-path ;
|
: temp-file ( name -- path )
|
||||||
|
temp-directory prepend-path ;
|
||||||
|
|
||||||
M: object normalize-pathname ( path -- path' )
|
M: object normalize-pathname ( path -- path' )
|
||||||
current-directory get prepend-path ;
|
current-directory get prepend-path ;
|
||||||
|
|
Loading…
Reference in New Issue