Pathnames relative to the system's temporary file directory:
current-temp-directory

temp-file ( name -- path )

temp-directory ( -- path )

with-temp-directory ( quot -- )


Pathnames relative to Factor's cache directory, used to store persistent intermediate files and resources:
current-cache-directory

cache-file ( name -- path )

cache-directory ( -- path )

with-cache-directory ( quot -- )