When searching for renames, check if the old still exists.
This commit is contained in:
parent
94c512350c
commit
ce8c367901
1 changed files with 5 additions and 0 deletions
|
@ -1609,6 +1609,11 @@ class PDBUtilMixin:
|
|||
except exceptions.NoSuchPhoto:
|
||||
return
|
||||
|
||||
if photo.real_path.is_file:
|
||||
# Don't relocate the path if this is actually a hardlink, and
|
||||
# both paths are current.
|
||||
return
|
||||
|
||||
if photo.bytes != stat.st_size:
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue