Don't go to archive file if it hasn't updated since last scan (#135)

* Skip archive work unless the file has actually changed since last scan.
This commit is contained in:
Joseph Milazzo 2021-03-31 12:53:53 -05:00 committed by GitHub
parent 237542b493
commit 667d1d2a4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View file

@ -9,5 +9,10 @@ namespace API.Extensions
{
return comparison.Equals(fileInfo.LastWriteTime);
}
public static bool IsLastWriteOlder(this FileInfo fileInfo, DateTime comparison)
{
return comparison > fileInfo.LastWriteTime;
}
}
}