From cd8ed8bc5793985df2c1692072a932ceee517b95 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 8 Jul 2026 02:13:35 +0200 Subject: OPEN THE RUST GATES Signed-off-by: salmonik --- cogs/utils/temp.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 cogs/utils/temp.py (limited to 'cogs/utils/temp.py') diff --git a/cogs/utils/temp.py b/cogs/utils/temp.py deleted file mode 100644 index 0b2c8d7..0000000 --- a/cogs/utils/temp.py +++ /dev/null @@ -1,18 +0,0 @@ -# This file is part of Senator Sperma -# Licensed under the GPL-3.0 License -# Copyright (C) 2026 Salmonik @ salmonik@tuta.io -# https://codeberg.org/salmonik/senator-sperma - -import os -import tempfile - -def get_temp_dir(subdir: str = "senator_sperma") -> str: - """Get or create a temp subdirectory. - - Uses system temp directory (/tmp on Linux, %TEMP% on Windows). - OS handles cleanup automatically. - """ - base_temp = tempfile.gettempdir() - temp_path = os.path.join(base_temp, subdir) - os.makedirs(temp_path, exist_ok=True) - return temp_path -- cgit v1.2.3