When searching for renames, check if the old still exists.

This commit is contained in:
voussoir 2021-01-25 13:44:36 -08:00
parent 94c512350c
commit ce8c367901
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -1609,6 +1609,11 @@ class PDBUtilMixin:
except exceptions.NoSuchPhoto: except exceptions.NoSuchPhoto:
return 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: if photo.bytes != stat.st_size:
return return