Spaces:
Sleeping
Sleeping
File size: 247 Bytes
4fdc679 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | # rag/modules/utils.py
import os
def ensure_dir(path: str):
os.makedirs(path, exist_ok=True)
def touch(path: str):
with open(path, "a", encoding="utf-8") as f:
pass
def exists(path: str) -> bool:
return os.path.exists(path)
|