mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
dont get confused by dangling symlinks at target
This commit is contained in:
parent
9b7b9262aa
commit
a083dc36ba
|
@ -1193,7 +1193,7 @@ def ren_open(
|
||||||
else:
|
else:
|
||||||
fpath = fname
|
fpath = fname
|
||||||
|
|
||||||
if suffix and os.path.exists(fsenc(fpath)):
|
if suffix and os.path.lexists(fsenc(fpath)):
|
||||||
fpath += suffix
|
fpath += suffix
|
||||||
fname += suffix
|
fname += suffix
|
||||||
ext += suffix
|
ext += suffix
|
||||||
|
|
Loading…
Reference in a new issue