Slava Pestov 2008-12-15 02:02:22 -06:00
parent 023ae576b5
commit 7b62d19924
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,9 @@
USING: help.markup help.syntax ;
IN: io.files.temp
ARTICLE: "io.files.temp" "Temporary files"
"Pathnames relative to Factor's temporary files directory:"
{ $subsection temp-directory }
{ $subsection temp-file } ;
ABOUT: "io.files.temp"

View File

@ -0,0 +1,10 @@
! Copyright (C) 2008 Slava Pestov, Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: kernel io.pathnames io.directories ;
IN: io.files.temp
: temp-directory ( -- path )
"temp" resource-path dup make-directories ;
: temp-file ( name -- path )
temp-directory prepend-path ;