SYSTEM_TEMPORARY_DIRECTORY

Returns a writable temporary directory on SYSTEM.

This is platform-specific.

  • JVM and Android: the path in the java.io.tmpdir system property

  • Linux, iOS, and macOS: the path in the TMPDIR environment variable.

  • Windows: the first non-null of TEMP, TMP, and USERPROFILE environment variables.

Note that the returned directory is not generally private. Other users or processes that share this file system may read data that is written to this directory, or write malicious data for this process to receive.