nitin230/File-Converter
0
1"""File utility helpers"""2import os3from pathlib import Path4 5 6def get_file_type(path: str) -> str:7 return Path(path).suffix.lower().lstrip(".")8 9 10def cleanup_temp(*paths):11 for p in paths:12 try:13 if p and os.path.exists(p):14 os.remove(p)15 except Exception:16 pass17 