mirror of
https://github.com/9001/copyparty.git
synced 2026-02-26 04:14:14 +10:00
dont get confused by dangling symlinks at target
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user