adds message when md5 sum changed
All checks were successful
PiwigoDirectorySync/pipeline/head This commit looks good

This commit is contained in:
Philipp Häfelfinger 2024-02-03 22:09:54 +01:00
parent c57d43211e
commit 8f290f5ef4

View File

@ -70,6 +70,7 @@ internal class FileIndexer : IFileIndexer
if (image.LastChange != fileInfo.LastWriteTimeUtc) if (image.LastChange != fileInfo.LastWriteTimeUtc)
{ {
_logger.Information("Calculating md5 sum for file {FullFilePath}", fullFilePath);
image.UploadRequired = true; image.UploadRequired = true;
image.Md5Sum = await FilesystemHelpers.CalculateMd5SumAsync(fullFilePath, ct); image.Md5Sum = await FilesystemHelpers.CalculateMd5SumAsync(fullFilePath, ct);
} }