fix file modification date comparisons (#14503)

This commit is contained in:
evan314159
2025-07-28 10:08:06 +08:00
committed by GitHub
parent 536437bbe3
commit 6f49782b7b
8 changed files with 23 additions and 13 deletions

View File

@@ -49,7 +49,7 @@ public class PhotoProvider : ICustomMetadataProvider<Photo>, IForcedProvider, IH
if (item.IsFileProtocol)
{
var file = directoryService.GetFile(item.Path);
return file is not null && file.LastWriteTimeUtc != item.DateModified;
return file is not null && item.HasChanged(file.LastWriteTimeUtc);
}
return false;