mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -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:
|
||||
fpath = fname
|
||||
|
||||
if suffix and os.path.exists(fsenc(fpath)):
|
||||
if suffix and os.path.lexists(fsenc(fpath)):
|
||||
fpath += suffix
|
||||
fname += suffix
|
||||
ext += suffix
|
||||
|
|
Loading…
Reference in a new issue