chickadee » chicken » file » create-temporary-directory

create-temporary-directoryprocedure

Creates an empty temporary directory and returns its pathname. If the environment variable TMPDIR, TEMP or TMP is set, then the temporary directory is created at that location. If none of the environment variables is given, the location of the temporary directory defaults to /tmp.

Note that TMPDIR, TEMP and TMP are checked in this order. It means that, for example, if both TMPDIR and TEMP are set, the value of TMPDIR will be used.

Changed in CHICKEN 5.4.0: the values of the TMPDIR, TEMP and TMP environment variables are no longer memoized (see https://bugs.call-cc.org/ticket/1830).