add suffix to obstructed names

This commit is contained in:
odrling 2023-01-18 21:48:59 +01:00
parent 5565622339
commit 064fea221b
No known key found for this signature in database
GPG Key ID: A0145F975F9F8B75
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def upload(file: Path,
pyperclip.copy("")
if obstruct:
filename = hashlib.sha256(file.name.encode()).hexdigest()
filename = f"{hashlib.sha256(file.name.encode()).hexdigest()}{file.suffix}"
elif filename is None:
filename = file.name