Files
2026-09-08 11:00:05 +05:30

8 lines
144 B
Python

import uuid
def generate_unique_name(ext: str):
if not ext.startswith("."):
ext = "." + ext
return f"{uuid.uuid4().hex}{ext}"