dont get confused by dangling symlinks at target

This commit is contained in:
ed 2023-01-27 20:27:00 +00:00
parent 9b7b9262aa
commit a083dc36ba

View file

@ -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