SysTempDir

@JvmField
val SysTempDir: File(source)

The system's temporary directory.

  • Jvm/Android: java.io.tmpdir from System.getProperty

  • Js:

  • Native:

    • Android Native targets: TMPDIR environment variable when available (Android API 33+), with a fallback to retrieving application package name from /proc/self/cmdline and uid from either /mnt/user directory names or parsing /proc/self/mounts in order to reconstruct the application cache directory of /data/user/{uid}/{package name}/cache. If accessibility check fails, will then fall back to /data/local/tmp.

    • Apple targets: TMPDIR environment variable when available, with a fallback to NSTemporaryDirectory.

    • Linux targets: TMPDIR environment variable when available, with a fallback to /tmp.

    • Windows targets: The first non-null TEMP, TMP, USERPROFILE environment variable, with a fallback to \Windows\TEMP.