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

master
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
1 changed files with 5 additions and 0 deletions

View File

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