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 New Issue
Block a user