diff --git a/basis/io/files/temp/temp.factor b/basis/io/files/temp/temp.factor index b1c18725c1..477c1f078d 100644 --- a/basis/io/files/temp/temp.factor +++ b/basis/io/files/temp/temp.factor @@ -12,7 +12,8 @@ SYMBOL: current-temp-directory current-temp-directory get ; : temp-file ( name -- path ) - temp-directory prepend-path ; + temp-directory + [ make-directories ] [ prepend-path ] bi ; : with-temp-directory ( quot -- ) [ temp-directory ] dip with-directory ; inline