Merge branch 'master' of git://factorcode.org/git/factor

db4
Doug Coleman 2008-03-16 17:08:01 -05:00
commit 3a4670f2ee
1 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ ARTICLE: "unique" "Making and using unique files"
ABOUT: "unique"
HELP: make-unique-file ( prefix suffix -- path stream )
HELP: make-unique-file ( prefix suffix -- path )
{ $values { "prefix" "a string" } { "suffix" "a string" }
{ "path" "a pathname string" } }
{ $description "Creates a file that is guaranteed not to exist in a platform-specific temporary directory. The file name is composed of a prefix, a number of random digits and letters, and the suffix. Returns the full pathname." }
@ -26,7 +26,8 @@ HELP: make-unique-directory ( -- path )
{ $see-also with-unique-directory } ;
HELP: with-unique-file ( prefix suffix quot -- )
{ $values { "quot" "a quotation" } }
{ $values { "prefix" "a string" } { "suffix" "a string" }
{ "quot" "a quotation" } }
{ $description "Creates a file with " { $link make-unique-file } " and calls the quotation with the path name on the stack." }
{ $notes "The unique file will be deleted after calling this word." } ;