mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
append file-ext when avoiding name collisions
This commit is contained in:
parent
cda36ea8b4
commit
d6a1e62a95
|
@ -262,6 +262,11 @@ def ren_open(fname, *args, **kwargs):
|
|||
yield {"orz": [f, fname]}
|
||||
return
|
||||
|
||||
if suffix:
|
||||
ext = fname.split(".")[-1]
|
||||
if len(ext) < 7:
|
||||
suffix += "." + ext
|
||||
|
||||
orig_name = fname
|
||||
bname = fname
|
||||
ext = ""
|
||||
|
|
Loading…
Reference in a new issue