/
fgtmenow
/
tb
Обзор
Документация
Войти
/
fgtmenow
/
tb
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
_common/domain/util/CacheUtil.py
11 строк
363 B
Azarev Artem
add test
26 мар 2025, 03:04
26 мар 2025, 03:04
3eee0a5
Код
Авторство
О чём код?
import os __CACHE_DIR = "__cache" def get_cache_file_path(filename: str, directory: str, subdirectory: str = "", ext: str = "csv"): """Get the path for a cache file.""" path = os.path.join(__CACHE_DIR, directory, subdirectory) if not os.path.exists(path): os.makedirs(path, exist_ok=True) return os.path.join(path, f"{filename}.{ext}")