SysTempDir
The system's temporary directory.
Jvm/Android:
java.io.tmpdirfrom System.getPropertyJs:
Node: os.tmpdir
Native:
Android Native targets:
TMPDIRenvironment variable when available (Android API 33+), with a fallback to retrieving application package name from/proc/self/cmdlineand uid from either/mnt/userdirectory names or parsing/proc/self/mountsin 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:
TMPDIRenvironment variable when available, with a fallback to NSTemporaryDirectory.Linux targets:
TMPDIRenvironment variable when available, with a fallback to/tmp.Windows targets: The first non-null
TEMP,TMP,USERPROFILEenvironment variable, with a fallback to\Windows\TEMP.