System.tmp_dir

You're seeing just the function tmp_dir, go back to System module for more information.

Specs

tmp_dir() :: String.t() | nil

Writable temporary directory.

Returns a writable temporary directory. Searches for directories in the following order:

  1. the directory named by the TMPDIR environment variable
  2. the directory named by the TEMP environment variable
  3. the directory named by the TMP environment variable
  4. C:\TMP on Windows or /tmp on Unix-like operating systems
  5. as a last resort, the current working directory

Returns nil if none of the above are writable.