in app/app.py [0:0]
def _is_file_safe(path) -> bool: try: return Path(path).is_file() except Exception: return ""