Require size sync

This commit is contained in:
2025-07-14 17:52:17 +02:00
parent 896aef7565
commit 17356488a7

View File

@ -329,7 +329,6 @@ private immutable(Actions) actions()
if ( !exclude(file) )
to_be_deleted[file] = true;
SysTime now = Clock.currTime();
foreach (this_rem; rem.byValue)
{
if ( exclude(this_rem.file) )
@ -352,22 +351,17 @@ private immutable(Actions) actions()
to_be_deleted.remove(this_loc.file);
if (this_loc.mtime != this_rem.mtime)
if (this_loc.mtime != this_rem.mtime || this_loc.size != this_rem.size)
{
if (this_loc.hash != this_rem.hash)
if (this_loc.hash != this_rem.hash || this_loc.size != this_rem.size)
{
act ~= this_act;
continue;
}
else
{
touch(workdir(this_loc.file), this_rem.mtime);
}
}
else
{
workdir(this_loc.file).setTimes(now, now);
}
}
foreach (file; to_be_deleted.byKey)