pub fn under_temp_root(path: &str) -> bool
Whether path is under a temporary-filesystem root. macOS’s /tmp is a symlink to /private/tmp, and harnesses report either spelling, so both are accepted (as is $TMPDIR).
path
/tmp
/private/tmp
$TMPDIR