static function temporary_directory($parent, $prefix = '') { $tempfile = SystemUtil::temporary_name($parent, $prefix); if (file_exists($tempfile)) { unlink($tempfile); } mkdir($tempfile); return $tempfile; }