pub fn secure_temp_dir() -> Result<PathBuf>
Get platform-specific temporary directory with proper permissions